Questions tagged [circleci-2.0]

267 questions
5
votes
1 answer

Expo + Detox + CircleCI

For the last two days I’ve been looking for a good setup to use Expo + Detox + CircleCI so that the app can build during the CI process. Locally, I can get Expo + Detox to work by downloading Exponent.app and placing in bin and running expo start…
Alex Chin
  • 1,642
  • 15
  • 28
5
votes
1 answer

Gradle build daemon disappeared unexpectedly in CircleCI

I use react-native on android. Everything was fine until I upgraded to latest version (0.59.4). The build keeps failing with "Gradle build daemon disappeared unexpectedly" error on CircleCI. It works fine on local. I know it's a memory issue and…
Hannan Shaik
  • 1,298
  • 2
  • 14
  • 27
5
votes
1 answer

Running more than 4 jobs in parallel with CircleCI

If I have a .circleci/config.yml file like so: version: 2 jobs: build-node8: docker: - image: oresoftware/lmx-circleci:8 steps: - checkout - run: ./scripts/circleci/run.sh build-node9: docker: - image:…
user5047085
5
votes
2 answers

CircleCI version 2.1 - "Cannot find a definition for command named 'restore-cache'"

I'm currently attempting to use the commands feature available in CircleCI version 2.1, so that I can reuse some common commands. I'm testing using the CLI command: circleci config process ./.circleci/config.latest.yaml > ./.circleci/config.yml But…
5
votes
2 answers

Configure yaml file for circle CI including environment variables for an Angular project

I have a project I'm trying to build, but my .api-keys document is being gitignored. So, I added my keys as environment variables to the project on circle CI. My problem is I'm not quite sure where/how to let my yaml config script know what they…
Atticus29
  • 4,190
  • 18
  • 47
  • 84
5
votes
2 answers

How can I update the max_connections config in my circleCI configuration?

I'm struggling to configure the MAX_CONNECTIONS postgres config in my circleCI configuration file. As you can see below I tried using sed to replace the max_connections value, but this didn't do anything, the max_connections remained at the default…
James111
  • 15,378
  • 15
  • 78
  • 121
5
votes
1 answer

CircleCi: Couldn't connect to Docker daemon at http+docker://localhost

In my Node.js project tests I'm starting docker-compose via child_process.spawn. When running CircleCi, the build fails with this error: Couldn't connect to Docker daemon at http+docker://localhost - is it running? This is the…
Alexander Zeitler
  • 11,919
  • 11
  • 81
  • 124
5
votes
0 answers

Circleci very slow to execute the first test of mailers with rspec

I am experiencing a problem that when running the first test of mailers when it makes the first call to the ActionMailer::Base#mail method the test hangs and takes about 10min. Has anyone ever experienced this? CircleCi image: image:…
5
votes
2 answers

How do I handle Gradle cache on CircleCI 2.0?

We are trying to cache all Gradle dependencies for our Android build job. This is the current approach that is failing: - restore_cache: key: android-build-{{ checksum "android/build.gradle" }}-{{ checksum "android/app/build.gradle" }} -…
Sibelius Seraphini
  • 5,303
  • 9
  • 34
  • 55
5
votes
2 answers

Are Instrumentation tests for Android Espresso available on CircleCi 2.0?

Are Instrumentation tests for Android Espresso available on CircleCI 2.0? If yes, can anybody, please, help to configure config.yml file for me? I’ve made thousand attempts and no luck. I can run unit tests, but not Instrumentation. Thanks
president
  • 503
  • 1
  • 3
  • 18
4
votes
1 answer

CircleCI: Skip entire workflow

Basically I'm trying to skip the build if it's not a pull request or a certain branch, however I don't seem to be able to skip a job or a part of the workflow if this fails, so far the problem is that circleci step halt does nothing in my pipelines,…
kainlite
  • 1,024
  • 17
  • 35
4
votes
2 answers

CircleCI insert environment variable

I created my first pipeline yesterday and I wanted to replace a placeholder in my bundle.gradle file with the CIRCLE_BUILD_NUM environment variable. The only method I found find was writing my own ‘sed’ command and executing the regex in a run…
NealR
  • 10,189
  • 61
  • 159
  • 299
4
votes
1 answer

How to set string to current date time?

I'm working through my first circleci build using aws-ecr orb and I want my tag to be set dynamically based on the current timestamp. How can I do that? orbs: aws-ecr: circleci/aws-ecr@6.2.0 version: 2.1 workflows: # Build and push to ECR on…
Catfish
  • 18,876
  • 54
  • 209
  • 353
4
votes
0 answers

Is it possible to persist VCR cassettes generated from tests run on CircleCI

We are using VCR to record http requests for our tests in a Rails application. The cassettes are currently committed to source, and every month we rerecord the cassettes manually and commit the new responses to source. We are using CircleCI to run…
4
votes
2 answers

How to get the branch that the PR is heading to in CircleCI

CircleCI have a CIRCLE_BRANCH env variable that tells you the name of the branch of the PR itself. But I want the other way around, I need the branch name of the PR is trying to merge against.
Matheus Lima
  • 2,103
  • 3
  • 31
  • 49
1
2
3
17 18