Questions tagged [continuous-integration]

Continuous integration (CI) is the 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.

Concept

Continuous integration is an important part of an agile software development process. Integration is an important step to detect quality issues, so if it is done frequently, problems will be detected earlier and fewer at a time. Hence, continuous integration can help to reduce the overall cost of the process. Although continuous integration could be automated with simple scripting, it is generally more advantageous to use tools built for this purpose, especially for complex projects with many modular parts.

Tools

One of the first tools to become popular for this purpose was CruiseControl. Now there are many such products, both open source and proprietary.

References

Martin Fowler has a good writeup of what it all means in Continuous Integration.

13768 questions
69
votes
7 answers

Continuous Integration System for a Python Codebase

I am starting to work on a hobby project with a Python codebase and I would like to set up some form of continuous integration (i.e. running a battery of test-cases each time a check-in is made and sending nag e-mails to responsible persons when the…
Matt
  • 5,883
  • 2
  • 29
  • 19
68
votes
12 answers

Getting GitLab CI to clone private repositories

I have GitLab & GitLab CI set up to host and test some of my private repos. For my composer modules under this system, I have Satis set up to resolve my private packages. Obviously these private packages require an ssh key to clone them, and I have…
danbroooks
  • 2,712
  • 5
  • 21
  • 43
66
votes
6 answers

Is it possible to install Visual Studio in a Windows Container

Is it possible to install any version of Visual Studio in a Windows Container on a Windows Server? The motivation is to use Windows Containers for building software in continuous integration systems, so that the build environment is standardized.
66
votes
4 answers

NUnit expected exceptions

I've got a set of test cases, some of which are expected to throw exceptions. Because of this, I have have set the attributes for these tests to expect exceptions like so: [ExpectedException("System.NullReferenceException")] When I run my tests…
Martin
  • 10,294
  • 11
  • 63
  • 83
66
votes
10 answers

Continuous Integration for a small .NET open source project

I'm starting a small open source project, myself being the sole contributor for the time. Still, I think a continuous integration setup would be useful to detect whether I broke the build. Is there a free, hosted continuous integration server that…
ripper234
  • 222,824
  • 274
  • 634
  • 905
65
votes
4 answers

Which version of Xcode does xcodebuild use?

I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, what I mean by that is that I can use both Xcode 3 and Xcode 4…
kraftydevil
  • 5,144
  • 6
  • 43
  • 65
65
votes
5 answers

GitLab CI/CD: Run jobs only when files in a specific directory have changed

I would like to run specific jobs on the .gitlab-ci.yaml if and only if files within specific directories of the repository have changed. Is there a way to do this with gilab's ci/cd tooling or would it be easier just to run a custom build script?
Victor Martinez
  • 980
  • 1
  • 8
  • 14
64
votes
5 answers

Gitlab CI - How to trigger a build only if changes happen on particular set of files

In Gitlab CI, how do you trigger a build only if changes happen on particular set of files? Is there a way to either include or exclude certain files from triggering a build? For eg: updating README.md, .gitignore files should not cause a build to…
Ishan
  • 3,931
  • 11
  • 37
  • 59
63
votes
8 answers

Npm postinstall only on development

I have npm module with following package.json { "name": "my-app", "version": "0.0.0", "scripts": { "prepublish": "bower install", "build": "gulp" }, "dependencies": { "express": "~4.0.0", "body-parser": "~1.0.1" }, …
just-boris
  • 9,468
  • 5
  • 48
  • 84
63
votes
3 answers

Suppressing GPG signing for Maven-based continuous integration builds (Travis CI)

I'm using Travis-CI to provide continuous integration builds for a few Java open source projects I'm working on. Normally this works smoothly, but I have a problem when the POM specifies GPG signing, e.g.
mikera
  • 105,238
  • 25
  • 256
  • 415
62
votes
4 answers

Anyone know of a hosted TeamCity build provider?

I'm looking to set up a TeamCity server for continuously building a .NET web application. I already have hosting, so I don't want to get a whole new hosting account such as AppHarbor. I don't maintain my own physical server, nor do I want to. I also…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
61
votes
3 answers

Difference between Github's "Environment" and "Repository" secrets?

In the GitHub documentation it states that the precedence of secrets is from lowest to highest (Environment > Repository > Organization), it also states that the Organization secrets are available for all repositories in the organization. But it…
60
votes
7 answers

Team Foundation Build or TeamCity?

We are a mostly MS shop at work doing .NET LOB development. We also use MS Dynamics for our CRM app... all the devs are currently using VS/SQL Server 2008. We also use VSS, but everyone hates it at work and that is quickly on its way out. We are…
dferraro
  • 6,357
  • 11
  • 46
  • 69
59
votes
12 answers

java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files

I build the project at gitlab ci ./gradlew assembleDebug --stacktrace and sometimes it throws an error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. >…
m.myalkin
  • 1,128
  • 1
  • 10
  • 18
59
votes
7 answers

Running JavaScript unit tests headlessly in a Continuous Integration build

I have a webapp build plan running on a Continuous Integration system (Atlassian Bamboo 2.5). I need to incorporate QUnit-based JavaScript unit tests into the build plan so that on each build, the Javascript tests would be run and Bamboo would…
miek
  • 3,446
  • 2
  • 29
  • 31