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

What could cause eslint-plugin-prettier to report error on CircleCI but be silent locally?

I have to migrate from CircleCI 1.0 to 2.0. After I have changed the old configuration to the new one, build failed because of eslint-plugin-prettier reported prettier spacing violations. MyProject - is my GitHub repo and it contains a folder…
Oleksandr Nechai
  • 1,811
  • 16
  • 27
11
votes
1 answer

'Maximum call stack size exceeded' from dotenv-expand on CircleCI using React

I'm trying to build a react app on CircleCI which until recently I've had no issues with. I'm now getting the following error whenever I attempt an npm run build from my circle.yml: #!/bin/bash -eo pipefail npm run build > jobcatcher-web@0.0.1…
edant92
  • 694
  • 8
  • 18
11
votes
1 answer

CircleCI 2.0, apt-get failing with "Permission denied"

I am in the process of a setting up a CircleCI 2.0 configuration and I am needing to include the ubuntu package 'pdf2htmlex', but I am being given the following error: apt-get update && apt-get install -y pdf2htmlex E: Could not open lock file…
Andre M
  • 6,649
  • 7
  • 52
  • 93
11
votes
3 answers

Docker: permission denied while trying to connect to Docker Daemon with local CircleCI build

I have a very simple config.yml: version: 2 jobs: build: working_directory: ~/app docker: - image: circleci/node:8.4.0 steps: - checkout - run: node -e "console.log('Hello from NodeJS ' + process.version + '\!')" …
Jeff Huijsmans
  • 1,388
  • 1
  • 14
  • 35
11
votes
0 answers

How to overwrite Code Climate test coverage report to the same commit

I am using cc-test-reporter to upload the test coverage result to Code Climate from CircleCI But running the same build fails with the message: Error: response from https://api.codeclimate.com/v1/test_reports. HTTP 409: A test report for commit…
Colin Wang
  • 6,778
  • 5
  • 26
  • 42
11
votes
1 answer

git reset --hard hangs on CircleCI/Ubuntu 14 with git-lfs < 1.5.6

I'm deploying to CircleCI and but my code is timing out. The command in particular that CircleCI is calling that's causing the time-out is during the checkout stage: git reset --hard SHA Where SHA is the hash of the build, but upon ssh'ing in I…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
11
votes
2 answers

CircleCI Android Unsupported major.minor version 52.0

I've been spending a day for the CircleCI in Android Project and I keep getting java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0 when CircleCI runs gradle dependencies command. Here is…
Jutikorn
  • 838
  • 1
  • 11
  • 25
11
votes
3 answers

Can Circle CI reference gradle.properties credentials?

I am setting up a Circle CI build for an Android project, and am wondering how to add a gradle.properties file to my project build. I use a local gradle.properties to store my API keys and sensitive data. Other CI tools (ie, Jenkins) allow you to…
Kio Krofovitch
  • 2,954
  • 1
  • 21
  • 30
11
votes
1 answer

What does CircleCI do with non-0 exit codes?

This seems very basic but I can't find it anywhere in the docs. I'm working on a project where we run some tests through a shell script wrapper like: ./foo.sh a ./foo.sh b ./foo.sh c foo.sh does not output XUnit format, so we need a different way…
Patrick Collins
  • 10,306
  • 5
  • 30
  • 69
11
votes
7 answers

How to run Rubocop only on the changed files in a pull request?

I have created spec/lint/rubocop_spec.rb which runs Rubocop style checker on the files changed between current branch and master. This works when I test locally but not when the test run on the build server Circle.ci. I suspect it is because only…
martins
  • 9,669
  • 11
  • 57
  • 85
11
votes
2 answers

CircleCI not caching my globally installed node module?

I am trying to cache a command line tool needed for my build process. The tool is made out of NodeJS. The build succeeds, but I need it to run faster. The relevant parts of my circle.yml look like this : dependencies: post: - npm -g…
Martin Bramwell
  • 2,003
  • 2
  • 19
  • 35
10
votes
1 answer

How can I prevent postgres deadlocks when running jest tests on CircleCI?

When I run my tests on CircleCI, it logs the following message a many times and eventually the tests fail because none of the database methods can retrieve the data due to the deadlocks: { "message": "Error running raw sql query in pool.", …
James111
  • 15,378
  • 15
  • 78
  • 121
10
votes
2 answers

Elastic Beanstalk Deployment: UndefinedModelAttributeError

I'm trying to deploy to Elastic Beanstalk, specifically using CircleCI, and I ran into this error: ERROR: UndefinedModelAttributeError - "serviceId" not defined in the metadata of the model:
Martavis P.
  • 1,708
  • 2
  • 27
  • 45
10
votes
1 answer

How to use a private repository in CircleCI?

I am a tester of plugins of Redmine. I want to test all plugins. In order to do so,I set .circleci/config.yml under one plugin's repository (managed by Github) and tried to test. But I got following mistake message. #!/bin/bash -eo pipefail …
hane
  • 101
  • 1
  • 1
  • 5
10
votes
4 answers

CircleCI Android constraintLayout doesn't work

I am now using the CircleCI for my project. Also I am implementing the new constraintLayout in my project. Now I am stuck with the CircleCI building. It shows me this when gradle -dependencies run: File /home/ubuntu/.android/repositories.cfg could…
Jutikorn
  • 838
  • 1
  • 11
  • 25