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

could not read Username for 'https://gitlab.com': No such device or address on Gitlab CI

I am trying to integrate gitlab CI on my node project, I have SSH access, but my script stop with error : fatal: could not read Username for 'https://gitlab.com': No such device or address debug2: channel 0: written 83 to efd 7 debug3: channel 0:…
Sacha Durand
  • 473
  • 1
  • 5
  • 11
6
votes
3 answers

Xcode 13 beta: "xcrun: error: Failed to locate 'instruments'"

Please note, I'm looking for /Applications/Xcode.app/Contents/Developer/usr/bin/instruments util (lower-case), not the Instruments app which can be found in Xcode.app/Contents/Applications. I have both Xcode12 and Xcode13-beta-5 on my…
olha
  • 2,132
  • 1
  • 18
  • 39
6
votes
1 answer

How to use both paths & branches filter with workflow_run event in Github Action?

I want to trigger a workflow that deploys the build. I want to make sure of the following: CI workflow is completed branch is develop there are some changes in src/** on: workflow_run: workflows: ['CI'] branches: [develop] paths:…
6
votes
1 answer

dotnet-reportgenerator is not able to find any coverage.cobertura.xml when running inside Gitlab CI pipeline

I want to generate a single coverage report for my C# project based on this tutorial https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-code-coverage When starting a Gitlab CI pipeline with the following configuration image:…
user13755987
6
votes
1 answer

UI Tests Flaky on CI

update: VNC into the build machine (without making any changes) somehow fixes this....strange Context We use Mac EC2 instances CI cluster to run UI tests. The cluster is set up to recycle every night. Meaning new cluster is provisioned in the…
OLIVER.KOO
  • 5,654
  • 3
  • 30
  • 62
6
votes
0 answers

GitHub: publish a generated HTML report

I am wondering how it is possible to publish a generated HTML report via GitHub? I think our use case is quite standard and it looks more or less like this: Startup docker image Some python setup work ( install packages from requirements.txt ) Run…
Simon
  • 706
  • 6
  • 23
6
votes
2 answers

App center Error: /Users/runner/work/1/s/android/gradlew failed with return code: 1

I'm using react native to build my apps and thought to give Microsoft app center a chance. The main issue I have is that I cannot finish the build. This should be a non-production build that will be tested by the QA team. This is the error I get:
6
votes
0 answers

Adding swift packages /dependencies without Xcode

I am trying to add swift packages through the command line or any other way. Without using xcode UI. I need this because we are using Unity and want to migrate from cocoapods to SPM. We need this done via CI systems. I saw that the changes are done…
freezing_
  • 984
  • 1
  • 9
  • 13
6
votes
2 answers

Update security group with specific IP range to only allow gitlab-ci to communicate with custom runner

I've followed https://docs.gitlab.com/runner/configuration/runner_autoscale_aws_fargate/ to create a custom runner which has a public IP attached and sits in a VPC alongside "private" resources. The runner is used to apply migrations using gitlab…
6
votes
2 answers

GitHub webhook can't connect to Jenkins inside VPN?

I am setting up continuous integration using Jenkins and GitHub Enterprise. So far I have been able to easily create Jenkins projects and run jobs regularly. Jenkins is using SSH public/private keys to authenticate and clone GitHub repos. Jenkins…
Danijel
  • 8,198
  • 18
  • 69
  • 133
6
votes
5 answers

How can I install and use compilers for embedded C on an external server?

Short Question Is there an accepted way to run compilers / linkers for embedded software projects on a remote server and still be able to program and debug the software on local machine. Note I know every IDE will be different, so what I am after…
Adam Lewis
  • 7,017
  • 7
  • 44
  • 62
6
votes
2 answers

GitLab CI custom variable not recognized in rules

When defining a variable in the variables block which uses a predefined CI variable, it cannot be referenced in the rules blocks. Here, only job_1 gets executed: variables: PRODUCTION_BRANCH: $CI_DEFAULT_BRANCH stages: - stage_1 job_1: …
Tracer69
  • 1,050
  • 1
  • 11
  • 26
6
votes
6 answers

Android: How to Install the Instrumentation APK onto an AVD in a Headless Host

I'm trying to integrate Android JUnit tests with our Bamboo Ant builds. I've already tested the setup locally, and I'm able to run tests. But when I tried the same setup in our Bamboo server, I get the following error when running the…
Shane Oliver
  • 944
  • 1
  • 8
  • 17
6
votes
2 answers

How to setup Gitlab CI E2E tests using Multiple dockers

I am a bit lost with the automated testing using Gitlab CI. I hope I can explain my problem so somebody can help me. I'll try to explain the situation first, after which I'll try to ask a question (which is harder than it…
J Nelen
  • 65
  • 1
  • 8
6
votes
2 answers

Unit Testing an Android application in Bamboo, Hudson, or any CI servers

it seems that running an Android Test requires that a device or emulator is present. even this article: http://code.google.com/p/the-missing-android-xml-junit-test-runner/ requires it. does anyone able to setup Android Tests in a CI server? kindly…
firnnauriel
  • 2,047
  • 7
  • 27
  • 44