Questions tagged [circleci]

1

votes
2

answer
1.2k

Views

CircleCI - different value to environment variable according to the branch

I'm trying to set different values for environment variables on CircleCI according to the current $CIRCLE_BRANCH. I tried setting two different values on CircleCI settings and exporting them accordingly on the deployment phase, but that doesn't work: deployment: release: branch: master commands: ......
felipeecst
1

votes
0

answer
76

Views

CircleCI configuration to deploy to server

Question: Could anyone tell me why the below configuration is not working? Error: Error: orb not found: scp _r * [email protected]: Config: # PHP CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-php/ for more details # version: 2 jobs: build: docker: # specify th...
sephiith
1

votes
1

answer
178

Views

CircleCI test failing due to the “hstore” Postgres extension not being installed

I'm trying to get a certain commit to pass the tests on CircleCI, but there are some differences with my local environment that I'm still trying to resolve. Here is the ./circleci/config.yml file: version: 2 jobs: build: working_directory: ~/lucy/lucy_web/ docker: - image: python:3.6.0 environment:...
Kurt Peek
1

votes
1

answer
829

Views

Visual reporting for Karate without Jenkins CI

I'm trying to get reporting working for Karate DSL, and it's proven a challenge because my team uses Circle CI instead of Jenkins. Cucumber reporting seems to only work for Jenkins. I've had a look at this documentation, here: https://github.com/intuit/karate/tree/master/karate-demo#example-report...
germyjen
1

votes
1

answer
250

Views

CircleCI 2.0 is running test workflow twice

The workflow configuration in my .circleci/config.yml file looks like this: workflows: version: 2 test-and-deploy-if-tagged: jobs: - build-and-test: filters: tags: only: /.*/ - deploy-to-qa: filters: tags: only: /^deploy.*/ branches: ignore: /.*/ The deploy-to-qa workflow includes: deploy-to-qa: req...
Aaron Brager
1

votes
1

answer
370

Views

Why can't Django 2.0.1 be found when running Circle CI?

I'm running Circle CI on a Django project. The build fails, and the results show that Django 2.0.1 couldn't be installed. Why is the build failing? I was previously using Gitlab CI without any problems. The installation runs from my requirements.txt which contains Django==2.0.1. config.yml # Python...
Jacob
1

votes
0

answer
134

Views

want to use windows container server in circleci

Current project is using windows server. The request from client was automation test using circle ci. but when I check circleci document, it may be impossible to deploy windows server(windows docker container) https://support.circleci.com/hc/en-us/articles/115015871087-Windows-and-NET-Support https:...
ttakahashi2013
1

votes
1

answer
255

Views

My Android build succeeds locally but fails on Circle Ci

My Android build succeeds lo locally but fails on Circle Ci with the following error log: What went wrong: Execution failed for task ':app:transformClassesWithDesugarForProductionRelease'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: co...
Po10cio
1

votes
1

answer
202

Views

Ignore an approval step for a certain branch CCI 2.0

What I want by default is for my branch to build, then wait for approval to deploy to dev. However, if I push to the dev branch, that should deploy without approval. I have the following workflow: workflows: version: 2 build: jobs: - build - approve-dev: type: approval requires: - build filters: bra...
user31415629
1

votes
0

answer
26

Views

Run a Rmarkdown file and push to gh-pages using circle CI

I've got a project on github with an Rmarkdown file. I want to build it and push the html file to gh-pages using circle ci. I don't understand how to write my circle ci configuration file : https://github.com/SGMAP-AGD/panorama/blob/master/.circleci/config.yml
PAC
1

votes
1

answer
352

Views

'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 > [email protected] build /home/circleci/repo > react-scripts build /home/ci...
edant92
1

votes
0

answer
427

Views

Detox UI tests run erroneously on CircleCI 2.0

We are building react-native app (iOS only) and for e2e testing we use Detox (https://github.com/wix/detox). When I run these tests locally everything works fine but I'm unable to make them run in CircleCI (2.0). Here is what our config.yml file looks like (in .circleci folder) https://ibb.co/eJc0pc...
Jan Crha
1

votes
0

answer
268

Views

How to build cordova node.js app using CircleCI to generate APK,IPA and broswer build

I have Node.JS code and i want to build cordova node.js app using CircleCI to generate APK,IPA and broswer build ,so how to write config.yml file for the same. Furthermore, I have written config.yml file for android build but still it fails to generate APK file. So please let me know what is wrong....
Martand Jagadale
1

votes
1

answer
43

Views

Q: How to change the parallelism value only in the case of master branch?(CircleCI2.0)

I use CircleCI2.0 in my rails app. I want to change the parallelism value only when master branch. so I set the circleci/config.yml like below. but it doesn't work. just Error occured. It's possible to adjust Parallelism for the particular branch? please give me any hint or advise. thanks. version:...
Kouta Osabe
1

votes
0

answer
127

Views

Environment variables not being picked up in my CircleCI gradle build

Locally I am using a gradle.properties file to store some secrets needed for my build. This works just fine. I was reading the Gradle docs and it would seem that environment variables can be swapped out and used in the same way. Here are the relevant docs I was reading. However when I set the env va...
Adam Duro
1

votes
2

answer
160

Views

Rspec + Capybara - Paypal Express Sandbox checkout timing

My test setup is Rspec + Capybara with Poltergeist / Phantomjs. I'm trying to test the Paypal express sandbox - sometimes the tests pass sometimes not. Looks like a timing problem. Here's my test snippet which redirects to Paypal and on success back to my page. I'm using my credit on the sandbox acc...
Oliver
1

votes
0

answer
426

Views

Trigger CircleCI Build from pull request

I'm trying to write a job in CircleCi such that I build the base branch in a pull request using the source code in the feature branch. For example, I add some new assets and tests in feature_1 branch. Feature_1 has an open pull request into 'develop' branch. I want to build the develop branch agains...
evanarb
1

votes
0

answer
175

Views

Selenium tests fail on CircleCI

I have a Django app I am trying to Selenium tests on CircleCI, but even though they run fine locally on my test environment they keep failing with a NoSuchElementException from Selenium on CircleCI. At the beginning of most of my browser tests, I run the following method, which is what is making the...
MarcioPorto
1

votes
0

answer
67

Views

Credo output format

I am automating the process to test my code and am using credo to test the format of my elixir code. I want to output the results and because I am using CircleCI I need the results to be in Cucumber JSON or JUnit XML. How do I configure credo to output one of these, I am currently using: mix credo -...
Sam Mallabone
1

votes
1

answer
229

Views

CircleCI YAML config fails

I have created a CircleCI config which will run my PHPUnit tests against my laravel application and that is working 100% however I am now trying to add a workflow to then SSH and deploy my app to an AWS EC2 server and I am getting the following errors: Your config file has errors and may not run cor...
ZeroCode
1

votes
0

answer
105

Views

How do I run my VS Code extension tests on Circle CI?

I have written unit tests for my VS Code extension and these run fine locally but I wanted to run them on my Circle CI build. I am having issues getting this working though, I have looked at the guide to setting it up on Travis CI but that doesn't seem to help. I have tried installing all the apt pa...
Heather Roberts
1

votes
1

answer
402

Views

CircleCI 2.0 -> /bin/bash: bash: command not found

In circle CI build I am trying to install nvm as follows: - run: name: Install nvm command: curl -o-https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash But I am getting this error: How do fix this issue?
Apurva jain
1

votes
1

answer
279

Views

CircleCI/Github pull request status not showing

Not entirely sure if this is an appropriate place for this question but I'd like to get my pull requests to show the status of the CircleCI build but can't find any solid documentation on it. The two are integrated and the builds start running as soon as a PR is created. I found some docs that said...
Danny Santos
1

votes
0

answer
138

Views

docker CircleCI integration fails to start daemon

I am executing a CircleCI script that should setup and install docker so that I can deploy to Dockerhub, however the Docker daemon will not start properly after installing it. These are the circleCI automations that I want to setup --- - run: name: Install Docker client command: | set -x VER='17.03....
joe the coder
1

votes
1

answer
247

Views

Run a command on CircleCI only once for a branch

I'm configuring my Circleci config right now to try to deploy a staging build for every new branch and then sends a message to my slack team with the link to the staging demo. I've done the sending message to slack part, but now CircleCI sends a message to slack every time I push. I would like to li...
mxdi9i7
1

votes
1

answer
56

Views

circleci with gcloud sdk UnicodeDecodeError

Before asking question, I wanna say that I've looked up every similar questions in stackoverflow, but everything was of no use. I am experiencing a strange error recently. I've used CircleCI as CI/CD tool to deploy my service to GCP app engine. Recently, I realized that nodejs8 is now available for...
ZeroCho
1

votes
0

answer
100

Views

ndk-build file not found but is called

In circleci environment, calling ndk-build in console gives me the error : /home/circleci/project/android-ndk-r10d/ndk-build: 158: /home/circleci/project/android-ndk-r10d/ndk-build: file: not found but then it runs the ndk-build executable. I'm not sure what's the reason. The ndk log is below: NDK...
ir2pid
1

votes
0

answer
40

Views

Caching is not working on Circle ci 2

Every time Circle Ci 2 run a build, Gradle downloads the dependencies even if the cache is enabled. Does anyone have a clue on this, on how to prevent it from downloading it each time? Thanks. full circle config file : https://gist.github.com/alouanemed/2b8ce7a154663ffd8b422f1b75748b4f
Mohamed ALOUANE
1

votes
1

answer
271

Views

CircleCI migration: Config file

I need to migrate from CirlceCI 1.0 to 2.0 I am trying to follow the steps mentioned in their documentation. But unable to get the correct config file. My Version 1.0 file looks like: ## Customize the test machine machine: timezone: America/New_York # List of timezones http://en.wikipedia.org/wiki/L...
user3367662
1

votes
1

answer
57

Views

Circle CI saving result of expression to BASH_ENV

Having a lot of trouble grabbing the version from a package.json and saving it as an environment variable for another step in Circle CI. Here's what I'm doing: - run: 'echo PACKAGE_VERSION=$(cat TaiV_Web_App/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\',]//g') >> $BAS...
npalansky
1

votes
0

answer
112

Views

Robot test fails when run on Circle CI

when I run my Robot test locally all is fine. I have a very basic Scala Play project with a couple of html pages. This project uses bitbucket, is built using Circle Ci and uses a Docker image. My Dockerfile looks like this... FROM circleci/python:2.7-stretch-browsers USER root RUN pip install --upgr...
GeoffG
1

votes
0

answer
125

Views

CircleCI: How to Handle Java OOM Errors

Get OOM error when I run test on CircleCI, like this: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:testDebugUnitTest'. > Process 'Gradle Test Executor 1' finished with non-zero exit value 137 * Try: Run with --stacktrace option to get the stack trace. R...
alice
1

votes
0

answer
87

Views

How can I simulate a remote Docker locally for the Circle CI image?

I'm trying to build a base image that Circle CI can use to load all my other Docker images from ECS. However, I'm having trouble simulating the remote docker environment locally when I build the image. How can I tell it to use remote Docker when in CI and local Docker when I'm local? This is my Dock...
Toli
1

votes
0

answer
16

Views

Can't fix parsing error for new dropdown menu

I got this error when I wanted to add another menu to my drop-down menu. I am not sure why this error came up. I added dropdown.avatar. because that what other menus also had. But it didn't work. What could I be missing here? circle CI said it's a 33:41 error Parsing error: Unexpected token 31 |...
Hirohito Yamada
1

votes
1

answer
71

Views

How to add php-amqp in CircleCI config.yml?

I tried to add in my config.yml following command: docker-php-ext-install amqp but CircleCI says: error: /usr/src/php/ext/amqp does not exist This is my full config.yml file: # PHP CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-php/ for more details # version: 2 jo...
Zotov Egor
1

votes
2

answer
227

Views

Single CI config for multiple repositories

seeking for advice about such problem. We have stack of microservices written on NodeJs and running on Kubernetes cluster. We have separate GitHub repository for each of them and currently using Circleci for our CI/CD process. As of now we have about 25-30 repos, but their number will increase and p...
Petr Kashlikov
1

votes
0

answer
48

Views

Errors Uploading to CircleCI with MySQL Database - Maven Clean Also Creates Issues When Run Before Maven Test

I'm using the Hibernate framework along with Maven in IntelliJ. I'm creating a MySQL database, I also have some ORM classes that map the MySQL database, and then I'm running some JUNIT tests to make sure everything works. Where I'm having trouble is in two places, which are related to each other:...
J. Mar
1

votes
1

answer
141

Views

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 100. I also tried to run a custom command (see the...
James111
1

votes
2

answer
401

Views

Keep getting permissions error gcloud.container.clusters.get-credentials

I am trying to integrate CircleCi with gcloud Kubernetes engine. I created a service account with Kubernetes Engine Developer and Storage Admin roles. Created CircleCi yaml file and configured CI. Part of my yaml file includes: docker: - image: google/cloud-sdk environment: - PROJECT_NAME: 'my-proje...
Naor
1

votes
1

answer
54

Views

Deployment to Azure VM using CircleCI

I am new to CircleCI and trying to figuring out options to deploy code on Azure VM's. I am good with build part. but not able to deploy code on Azure VM's. As my VM's are behind the firewall. and i realized that CircleCI IP address changes contentiously, there is no static IP which i can allow in f...
user2795720

View additional questions