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
6
votes
3 answers

How do I automatically increment the build id and version number of an Android App using Azure Pipelines

This is my build.gradle defaultConfig { applicationId "com.xyz.abc.na" minSdkVersion 16 targetSdkVersion 29 versionCode 36 versionName "5.0.2" multiDexEnabled true } In my YML, I have - task:…
6
votes
1 answer

Where should you put the git hub workflow directory for actions in a full-stack project?

I am building a full-stack react project with a node backend and would like to implement a git hub actions to automate pull requests for continuous integration. Currently, in my root directory, I have my project split into two directories a…
Austin S
  • 145
  • 1
  • 10
6
votes
2 answers

pass local.properties in build.gradle android through Git Hub secret

I am trying to automate build process of android app, I have stored baseUrl in local.properties file, and passing file content through Github secret, but Github action is keep failing, build.gradle: def…
6
votes
0 answers

gitlab ci why it remove node_modules while fetching changes and how we can skip removing

I have gitlab ci job for nodejs application I am using docker container to run node -version 8. Also, I am mounting gitlab build directory to docker. When I do npm install inside docker node_modules get root privilege. As build directory is mounted…
6
votes
4 answers

Continuous Integration stack on Windows with Mercurial + Mercurial Queues?

We've been using Mercurial with Mercurial Queues (+guards for patches) for source control of a number of Windows ASP.Net projects. I'm interested in setting up a Continuous Integration environment for this but am getting lost in conflicting…
jsaylor
6
votes
1 answer

How noninteractive install latest java version by sdkman?

In our CI/CD environment we have couple docker images with preinstalled java by sdkman. But there is one small problem, version number changes very often and our docker build fails because of missing package version. Eg.: sdk install java…
6
votes
1 answer

How can cypress be made to work with aurelia with github actions and locally?

Ok, so I added cypress to aurelia during my configuration and it worked fine. When I went to set up cypress on github as just a command, I could not get it to recognize puppeteer as a browser. So instead I went and used the official github actions…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
6
votes
1 answer

variables substitution (or overriding) when extends jobs from gitlab templates unsing include

Using gitlab ci, I have a repo where all my templates are created. For example, I have a sonar scanner job template named .sonar-scanner.yml: sonar-analysis: stage: quality image: name: sonar-scanner-ci:latest entrypoint: [""] …
6
votes
2 answers

Github Actions: Report dotnet test result as annotations

If you run tests using Azure Pipelines you would get some cool results on the checks tabs. Is there any way to do the same from Github Actions so we don't have to go through the console output?
hardkoded
  • 18,915
  • 3
  • 52
  • 64
6
votes
2 answers

How can I manually trigger a single job in Azure Pipelines?

I have a simple Azure Pipeline containing two stages: Stage 1: Build Stage 2: Run tests Stage 1 builds the source code and pushes the binaries to Azure Artifacts. Stage 2 downloads the binaries of Stage 1 and runs multiple tests against them,…
6
votes
2 answers

How to separate test and build stage with maven in gitlab-ci?

I want to separate the maven stages to build, test and deploy. Question: am I over complicating things here? Should I maybe just use a mvn clean package stage, because compile and test are executed implicit by maven during package…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
6
votes
3 answers

Azure DevOps maven task profile

I use the Maven task in Azure DevOps Pipelines. I need to activate a concrete profile, but I don't understand how to do it. I try to pass a profile in 'options' and in 'goals' but it doesn't work. How can I activate a profile correctly? - task:…
typik89
  • 907
  • 1
  • 10
  • 23
6
votes
1 answer

Github Workflow Actions And EC2: Error Loading Key Invalid Format

I am trying to set up CI for my nodejs server. I would like to use github actions to ssh into my ec2 instance, where I can then git clone/pull my updated repo. I can ssh into my ec2 instance on my local machine w no issues. I just do something like:…
6
votes
1 answer

How to test github CI locally?

Github has recently added action button for CI test. But, I do not want to push a code without passing CI locally. How can I test my ccpp.yml code locally?
ar2015
  • 5,558
  • 8
  • 53
  • 110
6
votes
1 answer

How to fix error with xcodebuild in GitHub Actions

I'm trying to setup a CI with my private Swift project in Github using GitHub Actions. I've used the standard swift.yml template provided by Github with some modifications. Here is the file ci.yml name: Swift on: [push] jobs: build: …