Questions tagged [circleci]

CircleCI is a hosted continuous integration testing tool integrated with popular code management services such as GitHub. It is commercial but free to open source projects.

CircleCI helps you to automate the software development process using continuous integration and continuous delivery(CICD).

1887 questions
13
votes
3 answers

How to block merging of pull requests by committers in GitHub

I am looking for a way via GitHub (or CircleCI) settings to prevent the person who opens or commits to a pull request from being able to merge or approve that pull request. So far I have the protection of a branch that requires approvals but…
bensiu
  • 24,660
  • 56
  • 77
  • 117
13
votes
4 answers

PyTest deprecation: 'junit_family default value will change to 'xunit2'

I'm getting deprecation warning from my pipelines at circleci. Message. /home/circleci/evobench/env/lib/python3.7/site-packages/_pytest/junitxml.py:436: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest…
Piotr Rarus
  • 884
  • 8
  • 16
13
votes
4 answers

CircleCI run multi line command

Excerpt from a CircleCI config file: deploy: machine: enabled: true steps: - run: name: AWS EC2 deploy command: | ssh -o "StrictHostKeyChecking no" ubuntu@xxx.xxx.xxx.xxx "cd ~/circleci-aws; git pull; npm i; npm…
ChrisRich
  • 8,300
  • 11
  • 48
  • 67
13
votes
3 answers

How to extend timeout for tests in circleci?

Im running some tests in circleci and some of the tests are taking longer then 10 min cause its ui tests that run on a headless browser that Im installing in my circle.yml How can I extend the time of the timeout? thanks
JohnBigs
  • 2,691
  • 3
  • 31
  • 61
13
votes
3 answers

Can circle ci use docker-compose to build the environment

I currently have a few services such as db and web in a django application, and docker-compose is used to string them together. The web version has code like this.. web: restart: always build: ./web expose: - "8000" The docker file in web…
Rajesh Chamarthi
  • 18,568
  • 4
  • 40
  • 67
13
votes
2 answers

CircleCI: error with a spec involving timestamps

I have a spec for a method that returns a timestamp of an ActiveRecord object. The spec passes locally, but whenever it is run on CircleCI, there is a slight mismatch between the expected and the actual. The spec looks something like this: describe…
mc9
  • 6,121
  • 13
  • 49
  • 87
13
votes
2 answers

Feature specs fail only on CircleCI or Codeship continuous integration services

My very basic feature specs are passing just fine locally but failing on CircleCI and Codeship. The tests that are failing: require 'spec_helper' describe 'Authentication' do describe "sign in" do it "is the landing page for…
Sasha
  • 6,224
  • 10
  • 55
  • 102
12
votes
4 answers

Android Firebase app distribution - Service credentials file does not exist. Please check the service credentials path and try again

I'm trying to migrate from Crashlytics Beta to Firebase App Distribution. CircleCi in the Middle. The build failes in CircleCi with the following error: What went wrong: Execution failed for task ':FiverrApp:appDistributionUploadRelease'. …
Udi Oshi
  • 6,787
  • 7
  • 47
  • 65
12
votes
2 answers

What does the "checkout" step in circle ci do?

Circle CI has a "config.yml" file. This file contains the configuration and it contains the steps in a job. There is a "checkout" included in the steps of the config.yml. what does the "checkout" do? This is a how a basic sample config for circleci…
12
votes
0 answers

How to reduce compile time in an iOS project on CircleCI with COCOAPODS

There is an iOS application I am developing that use CircleCI for automatic testing and more CI operations. We did make it compile and run on the CircleCI but the compile time takes about 9 minutes. I need to reduce the compile time somehow. I…
NDM
  • 944
  • 9
  • 30
12
votes
1 answer

xcodebuild archive fails with exit status 65 on CircleCI

Outline Hello! I am attempting to automate adhoc build by using fastlane with match and gym. I can archive at local environment. But I couldn't archive at Circle CI. Looks like xcodebuild command was failed. I login job by ssh, and this command is…
mogmet
  • 131
  • 7
12
votes
9 answers

ERROR: The overall deployment failed because too many individual instances failed deployment

I'm trying to deploy using CircleCI -> S3 -> CodeDeploy -> EC2. I was able to upload deploy image onto S3 from CircleCI, but unable to deploy S3 to EC2 instance. Here's the error. The overall deployment failed because too many individual…
Noriaki Takamizawa
  • 887
  • 1
  • 10
  • 25
12
votes
1 answer

Build fails because of "multiple definition" linker errors in native dependencies

I maintain an open-source framework that uses CircleCI for continuous integration. I've recently hit a wall where the project suddenly refused to build in rather strange circumstances. Build 27 was the last one that succeeded. After that, I made…
Bartek Banachewicz
  • 38,596
  • 7
  • 91
  • 135
12
votes
4 answers

Circleci: How to deploy depending on git tag

Is there a way to restrict circleci deployment on checkings that have a specific git tag? Currently I am using this ... deployment: dockerhub: branch: master commands: - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS …
dsteinkopf
  • 563
  • 4
  • 20
11
votes
5 answers

sbt always recompiles full project in CI, even with caching?

I'm struggling to use SBT for a CI process with this basic workflow: compile tests cache ~/.sbt and ~/.ivy2/cache cache all target directories in my project In a subsequent step: restore ~/.sbt and ~/.ivy2/cache restore full project, including…
drobert
  • 1,230
  • 8
  • 21