Questions tagged [build-automation]

Build automation is the act of scripting or automating tasks like compiling, packaging, running tests, deployment etc.

Build automation is the act of scripting or automating a wide variety of tasks that software developers do in their day-to-day activities including things like:

  • Compiling computer source code into binary code
  • Packaging binary code
  • Running tests
  • Deployment to production systems
  • Creating documentation and/or release notes

Advantages

  • Improve product quality
  • Accelerate the compile and link processing
  • Eliminate redundant tasks
  • Minimize "bad builds"
  • Eliminate dependencies on key personnel
  • Have history of builds and releases in order to investigate issues
  • Save time and money - because of the reasons listed above.

See also , and .

1857 questions
65
votes
12 answers

How to filter the xcodebuild command line output?

Running xcodebuild from the console will bring you very verbose output and I wasn't able to locate any options for limit its output in order to display only warnings and errors. I'm looking for a way to capture the xcodebuild output and filter it.…
sorin
  • 161,544
  • 178
  • 535
  • 806
61
votes
7 answers

Generate C# project using CMake

I'm trying to generate a C# project within an existing C++ CMake code base on Windows. After some research, I could find only two projects that built their own CSharp compilers for CMake: gdcm and kde. I tried both of them. Unfortunately, the first…
Leonid
  • 858
  • 1
  • 6
  • 13
55
votes
4 answers

What exactly is 'Building'?

In IDEs, you can compile source code into machine code. You can debug a program, which means stepping through the program and looking for errors. But what does building a program achieve? In VS, I'm aware that when you build a program it produces an…
contactmatt
  • 18,116
  • 40
  • 128
  • 186
55
votes
6 answers

Multiple settings gradle files for multiple projects building

I have the following project structure -->Starnderd Location -->Project1 -->settings.gradle -->build.gradle -->Subproject11 -->build.gradle -->Subproject12 …
Isuru
  • 7,893
  • 8
  • 30
  • 38
53
votes
5 answers

How to add a whole directory or project output to WiX package

We decided to switch from VS integrated setup to WiX. However, what we currently do is use projects output files as the input for the setup project. This lets us easily add Application Files to a directory (for images, samples, and other…
Coincoin
  • 27,880
  • 7
  • 55
  • 76
52
votes
11 answers

How do you automate a Visual Studio build?

How do you turn a Visual Studio build that you'd perform in the IDE into a script that you can run from the command line?
Sam Hasler
  • 12,344
  • 10
  • 72
  • 106
52
votes
6 answers

How can I rename files with Grunt, based on the respective file's parent folder name?

I have a the following structure: src/ modules/ module1/ js/ main.js scss/ main.scss index.html module2/ js/ main.js …
keirog
  • 2,158
  • 1
  • 19
  • 17
51
votes
5 answers

ant depends vs. antcall

When defining sequential build steps I use the depends attribute of the target element. I have recently seen an ant file, where the build sequence was defined by antcall elements inside the targets. To illustrate :
kostja
  • 60,521
  • 48
  • 179
  • 224
51
votes
1 answer

WiX undefined preprocessor variable

I'm starting to use WiX in order to do automated builds to create msi's of my c# projects and am experiencing the error "Undefined preprocessor variable '$(var.MyProject.TargetDir)'" I am using the latest WiX v3.0.5419. Inside my wxs file I am…
David
  • 15,150
  • 15
  • 61
  • 83
47
votes
9 answers

Xcode - Automatically add all files in a folder to a target

In Xcode, is there a way to specify that all files in a folder are compiled by a target. Eg. the 'Test' target automatically compiles all files in the 'Tests' folder, whereas the 'App' target compiles everything in the 'Sources' folder. Today, the…
Akshay Rawat
  • 4,714
  • 5
  • 40
  • 65
46
votes
5 answers

Getting started with autotools

Anyone recommend how a person could get started with autotools in building a C project?
joemoe
  • 5,734
  • 10
  • 43
  • 60
44
votes
2 answers

CMake: specifying build toolchain

Very new to CMake, and so far I'm finding it to be extremely helpful. I have a set of custom libraries that I would like to build for multiple platforms using cross-compilation. The toolchains are installed, and I can hand-create the Makefiles that…
Will
  • 3,500
  • 4
  • 30
  • 38
44
votes
7 answers

Sublime Text CoffeeScript build system: `env: node: No such file or directory`

I'm trying to set up a CoffeeScript build system in Sublime Text 3, but I keep getting the following error: env: node: No such file or directory [Finished in 0.0s with exit code 127] [cmd: ['coffee',…
CourtDemone
  • 5,772
  • 6
  • 23
  • 25
43
votes
2 answers

Building a library using autotools from cmake

This is my first try with cmake and I would like to have, if possible, some feedbacks about what I did since some problems remain. In the CMakeLists.txt of the library folder, I created two makefile targets: configure-antlr3c and antlr3c. The first…
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75
43
votes
3 answers

Best practice for setting up an automated build server for iphone apps?

I'm looking to setup an automated nightly build server for our iphone apps, and looking for advice on what works and what doesn't. Basically, something that at least nightly runs all the unit tests and publishes a new adhoc build to our internal…
JosephH
  • 37,173
  • 19
  • 130
  • 154