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
17
votes
2 answers

How to organize the project tree for a C++ project using nmake?

There seems to be two major conventions for organizing project files and then many variations. Convention 1: High-level type directories, project sub-directories For example, the wxWidgets project uses this style: /solution /bin /prj1 …
Zach Burlingame
  • 13,476
  • 14
  • 56
  • 65
17
votes
1 answer

Any tool to make git build every commit to a branch in a separate repository?

A git tool that meets the specs below is needed. Does one already exist? If not, I will create a script and make it available on GitHub for others to use or contribute. Is there a completely different and better way to solve the need to build/test…
17
votes
5 answers

Continuous integration - Best practices

I've been thinking about CI and automatic builds a lot lately and am interested in knowing if there are any best practices for setting up and maintaining a continuous integration environment. Do you keep all your CI related files checked in with…
Kristoffer Ahl
  • 1,661
  • 2
  • 18
  • 36
16
votes
6 answers

Can the "Application Error" dialog box be disabled?

I am using Hudson as a continuous integration server to test C/C++ code. Unfortunatly, I have a bug somewhere that causes memory corruption, so on some Windows machines I will sometimes get a "Application Error" dialog box explaining that an…
mch
  • 7,155
  • 3
  • 30
  • 34
16
votes
5 answers

Are there any good build frameworks written in Python?

I switched from NAnt to using Python to write build automation scripts. I am curious if whether any build frameworks worth using that are similar to Make, Ant, and NAnt, but, instead, are Python-based. For example, Ruby has Rake. What about…
Ray
  • 187,153
  • 97
  • 222
  • 204
16
votes
3 answers

how to time (profile) maven goals in a multi-module project

We have a huge project with many submodules. A full build takes currently over 30mins. I wonder how this time distributes over different plugins/goals, e.g. tests, static analysis (findbugs, pmd, checkstyle, etc ...) Would it be possible to time the…
Bastl
  • 1,431
  • 3
  • 14
  • 15
16
votes
5 answers

Automated-build version number with WiX, Inno Setup, and VS2008

Basically what I need is an automated way to update the product version number in WiX (3.0 with Votive etc), and then get that version number into an Inno Setup "bootstrapper" I pretty much have the process mostly automated, however version numbers…
Davy8
  • 30,868
  • 25
  • 115
  • 173
16
votes
5 answers

OpenOffice command line PDF creation

I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a…
Drejc
  • 14,196
  • 16
  • 71
  • 106
16
votes
5 answers

Verification of dependency authenticity in Maven POM based automated build systems

I was just pointed to a very interesting article (archived) about a security problem called Cross Build Injection (XBI). Bascially it is a fancy name for smuggling bad code into an application at build time via automated build systems such as ant,…
er4z0r
  • 4,711
  • 8
  • 42
  • 62
16
votes
14 answers

TFS 2010 Custom Build Activity TF215097 error

For the Build Process in TFS 2010 I've created a library containing some custom code activities. In the past it all worked fine by adding the library (*.dll) to Source Control and setting the 'Build Controller - Version Control Path to Custom…
Rhapsody
  • 6,017
  • 2
  • 31
  • 49
16
votes
5 answers

Easiest way to test for existence of cuda-capable GPU from cmake?

We have some nightly build machines that have the cuda libraries installed, but which do not have a cuda-capable GPU installed. These machines are capable of building cuda-enabled programs, but they are not capable of running these programs. In our…
Christopher Bruns
  • 9,160
  • 7
  • 46
  • 61
16
votes
6 answers

Best enterprise repository tool for Maven 2?

Some of the other questions and answers here on SO extol the virtues of using an enterprise repository tool like Archiva, Artifactory, or Nexus. What are the pros and cons of each? How do I choose between them? In case it helps: We use both Maven 1…
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98
16
votes
4 answers

Installing Node Grunt Locally

I'm in the process of reworking my build system, and I've read that node.js with grunt is a good way to go. I've never used either, and I'm having a bit of trouble. The problem is that I want to set up a portable build environment that I can include…
Dominic P
  • 2,284
  • 2
  • 27
  • 46
16
votes
1 answer

In a Visual Studio pre-build event how do I execute an exe in the context of its own folder instead of the bin folder?

I have a pre-build event defined like this: $(ProjectDir)PreBuild\runthis.exe When the runthis.exe executes, it runs in the context of the bin folder of my project instead of the PreBuild folder where it lives. How can I make the build event…
Rafe
  • 8,467
  • 8
  • 47
  • 67
16
votes
6 answers

How do you sign your Firefox extensions?

I have developed a couple of extensions for Firefox, and am annoyed that it is so hard to get the extension signed. When an extension isn't signed, it says "Author not verified" when it is installed, and to me that just looks wrong. I have a simple…
Allan Mertner
  • 1,074
  • 2
  • 11
  • 20