circleci

CircleCI deployment to AWS EC2

老子叫甜甜 提交于 2019-12-09 18:33:57
问题 Can you help me find a useful step-by-step guide or a Gist outlining in detail how to configure CircleCI (using 2.0 syntax) to deploy to AWS EC2? I understand the basic requirements and the moving pieces, but unsure what to put in the .circleci/config.yml file in the deploy step. So far I got: A "Hello World" Node.js app which is building successfully in CircleCI (just without the deploy step) A running EC2 instance (Ubuntu 16.04) An IAM user with sufficient permissions added to CircleCI for

CircleCI Android constraintLayout doesn't work

纵饮孤独 提交于 2019-12-09 09:49:54
问题 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 not be loaded. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > You have not accepted the license agreements of the following SDK components: [com.android.support.constraint:constraint

Setting up multiple Docker containers and MongoDB to run in CircleCI

孤街浪徒 提交于 2019-12-08 05:01:29
问题 I'm trying to setup a continuous integration flow for a group of several Rails service apps I have that communicate with each other through endpoints. The idea is to configure CircleCI so that when the test flow is triggered, it will pull down preconfigured Docker images for each of the apps, start Docker containers for each one, and then run a test suite that tests that the full-flow integration works from one app through the other. One of the service apps uses MongoDB, so it needs to also

Test Summary Not Populated With Test Results in CircleCI

☆樱花仙子☆ 提交于 2019-12-08 00:05:25
问题 In CircleCI, I have a build executing automated tests. It generates tests results in an XML file using nose2 and junit plugin. The complete path of the test result file is: /project-folder/test/junit/test-result.xml My CircleCI configuration in the file /project-folder/.circleci/config.yml contains this: - store_artifacts: path: test/junit/test-results.xml destination: test-results - store_test_results: path: test/junit/test-results.xml When the build executes, it confirms that test results

TestCafe, CircleCI 2.0 & SauceLabs — can't get this combination to work

无人久伴 提交于 2019-12-07 22:53:31
问题 So -- I can, from my laptop do the following: testcafe "saucelabs:Chrome@70.0:Windows 10" tests/settings/users.js This will, connect to SauceLabs, to launch the test (or multiple tests, works either way), to hit back against our development server. (IP's have been whitelisted, it all works). I can also, of course, login to sauce labs, open a "live testing" browser and connect to this environment/login etc. Thus, the "SauceLabs =-> My environment" is fine. If I try to run a build on circleci

Can I use CircleCI with other OS than Ubuntu?

有些话、适合烂在心里 提交于 2019-12-07 20:18:09
问题 Is it possible to use CircleCI with other OS than Ubuntu? I can't find an answer in the documentation. Particularly I would like to use Debian 7.8. 回答1: You can use a Docker image of Debian 7.8 inside your build, but it's not possible at this time to replace the base image of the build VM. 来源: https://stackoverflow.com/questions/30591836/can-i-use-circleci-with-other-os-than-ubuntu

Exec is not supported by the lxc driver: how to get around this?

女生的网名这么多〃 提交于 2019-12-07 04:10:36
问题 Using Docker on CoreOS, I have a script which calls: docker exec ... This works fine on CoreOS, but I also want to test it on CircleCI. When I try to run that script on CircleCI, I get: time="2015-06-22T01:14:51Z" level=fatal msg="Error response from daemon: Unsupported: Exec is not supported by the lxc driver" ./tests/run.sh returned exit code 1 Here are the test results on CircleCI. I tried changing docker exec to docker --exec-driver native exec , however I am not entirely sure what a

Simple CircleCI 2.0 configuration fails for global NPM package installation

☆樱花仙子☆ 提交于 2019-12-06 11:13:56
I have a Dockerfile that works fine: FROM node:10 RUN npm set unsafe-perm true RUN npm install -g '@oresoftware/r2g@0.0.132' but the same CircleCI config.yml file that mirrors the above Dockerfile does not work: { "version": 2, "jobs": { "build": { "docker": [ { "image": "circleci/node:10" } ], "steps": [ { "run": "npm set unsafe-perm true" }, { "run": "npm install -g --loglevel=warn '@oresoftware/r2g@0.0.132'" } ] } } } I get the following error on CircleCI using the above config.yml file: #!/bin/bash -eo pipefail npm install -g --loglevel=warn @oresoftware/r2g npm WARN checkPermissions

Authentication plugin 'caching_sha2_password' cannot be loaded in circleci/mysql

余生颓废 提交于 2019-12-06 06:11:42
问题 I've recently encountered problems when testing code in CircleCi 2. Parts of our config.yml: jobs: build: environment: docker: ... - image: circleci/mysql - image: rabbitmq:3-alpine working_directory: ~/webapp steps: ... - run: name: Prepare DB command: echo "create database" | mysql --host 127.0.0.1 The build fails at Prepare DB with ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: Error loading shared library /usr/lib/mysql/plugin/caching_sha2_password.so:

How to push a commit to Github from a CircleCI build using a personal access token

亡梦爱人 提交于 2019-12-05 12:14:05
问题 When executing a build for git repository giantswarm/docs-content in CircleCI, I'd like to push a commit to another repository giantswarm/docs . I have this in the deployment section of circle.yml : git config credential.helper cache git config user.email "<some verified email>" git config user.name "Github Bot" git clone --depth 1 https://${GITHUB_PERSONAL_TOKEN}:x-oauth-basic@github.com/giantswarm/docs.git cd docs/ git commit --allow-empty -m "Trigger build and publishing via docs-content"