build-process

Parallel Make Output

六眼飞鱼酱① 提交于 2019-11-30 15:48:22
When running a CMake generated Makefile with multiple processes ( make -jN ), the output often gets messed up like this: [ 8%] [ 8%] [ 9%] Building CXX object App/CMakeFiles/App.dir/src/File1.cpp.o Building CXX object App/CMakeFiles/App.dir/src/File2.cpp.o Building CXX object App/CMakeFiles/App.dir/src/File3.cpp.o I'm not sure, but I think this behavior is also there for Makefiles not generated by CMake. I'd say it happens when multiple processes write to stdout at the same time. I know I'm probably being pedantic, but is there any (simple) fix to this? ;) Eric Melski If you're using GNU make,

svn deployment strategies for multiple groups of developers (not co-located) working on different components of the same project

天大地大妈咪最大 提交于 2019-11-30 15:35:41
Our project is a content management system supporting several dozen of our websites. The development group started off small and in one location, and we dealt with a fairly standard coding/deployment strategy. We coded off of trunk and insisted on a clean trunk. Every few days we would tag trunk and deploy to the test server. If all worked out, we'd deploy to Production and move on. That worked well for a while until the team grew. We frequently faced situations where the revision that was tagged had problems that needed to be fixed before going to Production. While the developer responsible

Is it possible to develop for sharepoint using continuous integration techniques?

江枫思渺然 提交于 2019-11-30 14:21:59
问题 We are gearing up for some pretty serious Sharepoint(MOSS 2007) development including custom web parts, lists, master pages and layouts etc etc and etc. We are evaluating version control and it seems that the discussion has not got much deeper than that. I am keen that we can easily deploy from the source control to our test and production servers with as little human contact as possible, and preferably entirely automatically after every check in. I have not worked using CI before and so am

makefile with directory tree creation suitable for parallel (-j ) build

有些话、适合烂在心里 提交于 2019-11-30 14:11:30
问题 My project needs temporary directories which are created during the build using mkdir -p similarly to this: all: dirtree $(OBJFILES) dirtree: @mkdir -p $(BUILD)/temp_directory But this approach cannot be used with the -j switch, because first of the OBJFILES get compiled before the mkdir target is made. Is there a standard way to do this? 回答1: The problem with your makefile is that creation of your object files does not depend on creation of the relevant directories (only a phony "all" target

Should I put many functions into one file? Or, more or less, one function per file?

点点圈 提交于 2019-11-30 12:39:19
I love to organize my code, so ideally I want one class per file or, when I have non-member functions, one function per file. The reasons are: When I read the code I will always know in what file I should find a certain function or class. If it's one class or one non-member function per header file, then I won't include a whole mess when I include a header file. If I make a small change in a function then only that function will have to be recompiled. However, splitting everything up into many header and many implementation files can considerately slow down compilation. In my project, most

How to setup a sophisticated java development infrastructure?

梦想与她 提交于 2019-11-30 12:18:50
问题 I'm looking for a complete java development infrastructure with an integration of: an IDE like eclipse, a build system like Maven, a version control system like subversion, a continuous integration server like Hudson, a repository manager like Nexus, an automated release plugin like Maven Release Plugin. Further I'd like to have: a predefined multi component project structure ...and optionally: an issue manager like Jira, an integration with an open source hoster like sourceforge. Evaluating

How to run a TeamCity build only for tags?

半腔热情 提交于 2019-11-30 12:06:53
I have several projects that produce NuGet packages that I publish to an internal server. We're using semantic versioning , and using tags in our Git repository to control the version numbers. I'm tagging like this: git tag -a v1.0.0 -m "tagged" And, during the TeamCity build, I run git describe --long , which produces an output like this: v1.0.0-0-ge9c047d The fourth number in the output is the number of commits after the tag. The 0 here means that no commits have been made since the tag. I use these first four numbers as the version number (and, incidentally, the entire string as the

Command line compiling an iPhone Application

我怕爱的太早我们不能终老 提交于 2019-11-30 11:47:33
I would like to find a way to compile and package our iPhone application as part of our automated nightly build. At present we always have to manually kick off a build on a shared Mac that has the adhoc certificates installed on the box and then post the resulting test binaries some place where testers can pull them down and install them. Has anyone found an approach to automation that works for them? There's a command line tool to build Xcode projects: xcodebuild Try using xcodebuild, it'll build an Xcode project from the command line. You can then pull the binaries out of the build directory

Android build configurations for multiple customers

佐手、 提交于 2019-11-30 11:37:23
问题 I have Android application that needs to be delivered to multiple customers. For every customer I have different graphics and configuration XML files which specify features and URLs. At build time we should be able to specify the customer for which the application should be built. Then resources (like images and run-time configuration) appropriate for the specified client should be built into the app. The project is build with Maven. Any ideas? 回答1: I ended up using maven profiles and

What's an easy way to detect modified files in a Git workspace?

久未见 提交于 2019-11-30 10:48:49
During make, I create string fields which I embedded in the linked output. Very useful. Other than a complex sed / grep parsing of the git status command, how can I easily determine if files in the workspace have been modified according to git ? If you just want a plain “Are there any differences from HEAD?”: git diff-index --quiet HEAD If the exit code is 0, then there were no differences. If you want “What files have changed from HEAD?”: git diff-index --name-only HEAD If you want “What files have changed from HEAD, and in what ways have they changed (added, deleted, changed)?”: git diff