In software engineering, continuous integration (CI) implements the continuous building and automated testing of the full software product on a frequent schedule. At least once a day, often several times a day and sometimes as often as after every check in to the version control system.

learn more… | top users | synonyms

166
votes
24answers
23k views

How to apologize when you have broken the nightly build [closed]

My first commit in my project resulted in the nightly build being broken and people are all over me as we are nearing the release. I want to send an apology email that should sound sincere and at the ...
80
votes
9answers
9k views

What's the point of running unit tests on a CI server?

Why would you run unit tests on a CI server? Surely, by the time something gets committed to master, a developer has already run all the unit tests before and fixed any errors that might've occurred ...
60
votes
12answers
16k views

To branch or not to branch?

Till recently my development workflow was the following: Get the feature from product owner Make a branch (if feature is more than 1 day) Implement it in a branch Merge changes from main branch to ...
51
votes
6answers
5k views

65.000.000.000 tests to run

I was asked about how to run a suite of 65.000.000.000 tests and I wonder if it is normal to have a project with such a huge amount of tests. Have you worked in projects with this characteristic?
45
votes
16answers
3k views

Should a programmer fix someone else's failed build? [closed]

One programmer committed some work to the SVN repository, then went home. After he left, the Hudson automatic build failed. Another programmer saw this, and after looking through the code changes, ...
32
votes
12answers
2k views

How many developers before continuous integration becomes effective for us?

There is an overhead associated with continuous integration, e.g., set up, re-training, awareness activities, stoppage to fix "bugs" that turn out to be data issues, enforced separation of concerns ...
30
votes
8answers
5k views

Is it a good practice to run unit tests in version control hooks?

From the technical point of view it is possible to add some pre/post push hooks which will run unit tests before allowing some specific commit to be merged to remote default branch. My question is - ...
29
votes
10answers
2k views

Do DVCSes discourage continuous integration?

Say there is a team of ten agile developers. Every day they each pick a task from the board, commits several changes against it, until (by the end of the day) they have completed the task. All ...
28
votes
8answers
5k views

Is it reasonable to run processes with CI tools?

At my company, we have a quagmire of disparate cron jobs (on multiple systems) and manually kicked off processes which keep our business functioning that is a result of years of expedient development ...
26
votes
9answers
9k views

How to maintain different, customized versions of the same software for multiple clients

we have multiple clients with different needs. Although our software is modularized to a degree, it's almost certain that we need to adjust every module's business logic here and there a little for ...
25
votes
11answers
6k views

When to do code reviews when doing continuous integration?

We are trying to switch to a continuous integration environment but are not sure when to do code reviews. From what I've read of continuous integration, we should be attempting to check in code as ...
24
votes
7answers
4k views

Automatically reverting commits that fail the build

A colleague of mine told me that he is thinking in making our CI server to revert commits that failed the build, so the HEAD in master is always stable (as in passing the build at least). Is this a ...
23
votes
7answers
1k views

how to stay efficient when a build is almost always broken

I work in a middle sized team which shares the same source code and while have a continues integration in place, but as all of us has to work in the same branch, the build is almost always broken. ...
23
votes
3answers
6k views

Simple explanation of Continuous Integration

How would you define Continuous Integration and what specific components does a CI server contain? I want to explain to someone in the marketing department what Continuous Integration is. They ...
21
votes
11answers
2k views

Babysitting your Continuous Integration System

One of my roles in my team is the build person. I am responsible for maintaining/updating our build scripts and making sure we are building 'smoothly' on the continuous integration server. I usually ...
21
votes
4answers
2k views

How can CI be used for interpreted languages?

I have never used a Continuous Integration system (CI) before. I primarily code in MATLAB, Python or PHP. Neither of these have a build step and I do not see how a CI could be used for my work. A ...
20
votes
7answers
1k views

Continuous Integration : which frequency?

I've always launched builds after each commit, but on this new project, the architects just asked me to change the frequency to "one build every 15 minutes", and I just can't understand why that would ...
20
votes
9answers
2k views

Convince a lone developer to use a separate build tool instead of the IDE one-click build

In my years of programming Java and more recently Scala, I've never used Ant, Maven, Gradle or any of those build tools for Java. Everywhere I've worked there was a build manager who took care of all ...
18
votes
6answers
2k views

How can Continuous Delivery work in practice?

Continuous Delivery sounds good, but my years of software development experience suggest that in practice it can't work. (Edit: To make it clear, I always have lots of tests running automatically. ...
17
votes
5answers
2k views

What advantages do continuous integration tools offer on a solo project?

If you're doing a solo project - would you use CI tools to build from a repository? I've used Hudson and Cruise Control in a team environment, where it's essential to build as soon as anyone checks ...
16
votes
2answers
846 views

Is it good practice to store software version numbers in VCS?

A product version, such as v1.0.0.100, represents not only a unique production release of software, but helps identify feature sets and hotfix stages for said product. Right now I see two ways to ...
15
votes
6answers
930 views

Who is Responsible for Setting Up An Automated Builds System?

I am a project manager at my company. I work with a few teams of developers using a standard, well-known version control system known as CVS. I'd like to see continuous integration and automated ...
15
votes
9answers
3k views

How to lead a development project without technical expertise

I have been a hands-on developer for my entire career and love working with code. I have always resented the team lead who has little or no expertise regarding a particular technology and yet insists ...
15
votes
4answers
9k views

How to use github, branches and automatic releases for version management? [closed]

I understand most of the basic Git/Github concepts by now, however I still have trouble understanding the bigger picture. These are some things that I have managed to get working so far: Push ...
15
votes
6answers
4k views

Good workflow for software development with scrum and continuous integration

I'm studying an approach to understand better how the continuous integration workflow fits better in a software development company with the scrum method. I'm thinking something like this: Would ...
15
votes
2answers
2k views

Mercurial Repository structure with heavyweight corporate comms, configuration management & test requirements

I am yet another Subversion user struggling to re-educate myself in the Tao of distributed version control. When using Subversion, I was a big fan of the project-minor approach, and, with most of my ...
14
votes
13answers
3k views

Are there serious companies that don't use version-control and continuous integration? Why?

A colleague of mine was under the impression that our software department was highly advanced, as we used both a build server with continuous integration, and version control software. This did not ...
14
votes
6answers
965 views

What does “automated build” mean?

I'm trying to add Continuous Integration to a project. According to Wikipedia, one major piece of CI is automated builds. However, I'm confused about what, exactly, that means, as the CI and build ...
13
votes
2answers
8k views

How should I select continuous integration tool? [closed]

I found this cool comparison table for integration servers on Wikipedia, but I am a little uncertain how to rank the tools vs. my needs and interests. The chart itself seems to have a lot of boxes ...
13
votes
5answers
706 views

Should coding standards be enforced by the continuous integration server?

Should coding standards/style be enforced by the continuous integration server running static analysis tools (ex. PMD, StyleCop/FxCop) and failing the build if the standards are not followed? What ...
13
votes
2answers
4k views

Why is build.number an “abuse” of semantic versioning?

I was explaining a proposed build system (Gradle/Artifactory/Jenkins/Chef) to one of our senior architects, and he made a comment to me that I sort of disagree with, but am not experienced enough to ...
13
votes
6answers
462 views

How do you scale your integration testing?

I am investigating techniques and strategies for scaling our growing number of integration tests on our current product, so that they can (humanly) remain part of our development, and CI process. At ...
13
votes
5answers
575 views

Odd company release cycle: Go Distributed Source Control?

Sorry about this long post, but I think it is worth it. I have just started with a small .NET shop that operates quite a bit differently to other places that I have worked. Unlike any of my previous ...
12
votes
6answers
839 views

When does Continuous Integration add value? [duplicate]

Possible Duplicate: How many developers before continuous integration becomes effective? When does continuous integration (such as CruiseControl) add value to a project? Do factors such as ...
12
votes
4answers
5k views

Release build vs nightly build

A typical solution is to have a CI (Continuous Integration) build running on a build server: It will analyze the source code, make build (in debug) and run tests, measure test coverage, etc. Now, ...
12
votes
4answers
906 views

How do I learn the right approach to implement half a feature? [closed]

I lead a development team and I want to release our product as often as possible (Continuous Delivery). In many cases, we have to implement a feature that takes longer to implement than the time ...
12
votes
8answers
435 views

Alternative to “Passing/Broken build” indicator?

When having a continuous integration executing the tests at each commit, a common best practice is to have all the tests passing at all times (aka "do not break the build"). I find some problems with ...
12
votes
3answers
2k views

Branching breaks continous integration?

I think this article, A Successful Git Branching Model, is very well known among experienced DVCS users. I use hg mostly, but I would argue this discussion is fine for any DVCS. Our current ...
12
votes
3answers
1k views

Patterns for Continuous Integration and DVCS

We currently use Subversion and TeamCity, we're going to move to using Mercurial (specifically Kiln as we're FogBugz users). Obviously this will result in changes - hopefully improvements - in our ...
11
votes
2answers
226 views

Using continuous build results as part of performance review metrics? [closed]

My boss is planning to use the metrics from our continuous build (builds and runs tests on every commit) as part of our performance reviews (in our 'quality' metric). This seems like a REALLY bad idea ...
11
votes
4answers
2k views

How to do external API testing (blackbox)

Assume you are using APIs from a vendor, how to make sure their API is working as expected? My main concern is sometimes the vendor pushed the changes to their code and break the API, we want to have ...
10
votes
5answers
727 views

What is Continous Integration (CI) and how is it useful? [closed]

Can some one explain to me the concept of Continious Integration, how it works in an easy to understand way? And why should a company adopt CI in their code delivery workflow? I am a developer and my ...
10
votes
4answers
1k views

maintaining a growing, diverse codebase with continuous integration

I am in need of some help with philosophy and design of a continuous integration setup. Our current CI setup uses buildbot. When I started out designing it, I inherited (well, not strictly, as I was ...
9
votes
4answers
654 views

At which point is a continuous integration server interesting?

I've been reading a bit about CI servers like Jenkins and I'm wondering: at which point is it useful? Because surely for a tiny project where you'd have only 5 classes and 10 unit tests, there's no ...
9
votes
4answers
5k views

Continuous Build server (cc.net, hudson, bamboo, etc…) remote build experience?

We currently use once cc.net server for our build process, which builds both .net (using msbuild & nant) and java (using maven and ant). CC.net monitors source control, and triggers a remote ...
9
votes
3answers
6k views

Continuous integration (with iOS and Android projects) [closed]

I'm trying to make some positive changes in my company and one of the changes is implementing continuous integration. We do mobile development (iOS/Android) so I need a CI that supports both types of ...
8
votes
1answer
1k views

Why would you create a deployment script in PowerShell when you have TFS?

I'm experimenting with automatic deployment / continuous integration and had a talk with my team lead. I told him I'm investigating creating build/deployment scripts in PowerShell and he said ...
8
votes
2answers
479 views

What should I be looking for when evaluating unit testing libraries and tools?

I'm in the process of choosing new unit testing tools for soon to be started project. There are plenty of them! The basic requirements I have would be that it can run tests on at least Windows and ...
7
votes
1answer
881 views

Responsibilities of Build Script and Build Server

I need some clarifications on the responsibilities of the Build Script and the Build Server. I read several articles on the Net about continuous integration and builds. Including The F5 Key Is Not ...
7
votes
1answer
717 views

What are the advantages of continuous deployment? [closed]

Continuous deployment require a lot of effort, beyond what is needed for continuous integration. Since every change corresponds to a release (more or less), there is far less time and resources ...