circleci

Does circleci checkout pull the latest code from master or the code for the specific commit

徘徊边缘 提交于 2021-02-18 12:13:46
问题 Hello stackoverflow/circleci gods. I have been using circleCI for a while now and I have a question about the 'checkout' step which I will do my best to explain. This is a snippet from my circleCI config file (I have a job 'a-job' whose first step is checkout): a-job: docker: - image: docker-image-here steps: - checkout ... My question is, does the circleci step 'checkout' pull the latest code from master or the code for the specific commit. i.e. does checkout simply git clone master:latest

Deploying Docker to AWS Elastic Beanstalk — how to forward port to host? (port binding)

旧街凉风 提交于 2021-02-16 14:56:46
问题 I have a project set up with CircleCI that I am using to auto-deploy to Elastic Beanstalk. My EBS environment is a single container, auto-scaling, web environment. I am trying to run a service that listens on raw socket port 8080. My Dockerfile: FROM golang:1.4.2 ... EXPOSE 8080 My Dockerrun.aws.json.template: { "AWSEBDockerrunVersion": "1", "Authentication": { "Bucket": "<bucket>", "Key": "<key>" }, "Image": { "Name": "project/hello:<TAG>", "Update": "true" }, "Ports": [ { "ContainerPort":

How to set a different Phpunit environment variable?

て烟熏妆下的殇ゞ 提交于 2021-02-10 16:14:41
问题 In our code we have line: if (Configure::read('environment') != 'live') { ConnectionManager::alias(Configure::read('environment'), 'default'); } This means that whenever our code is not on live, our connection is going to be set as 'default' and we have this connection in app.php I have a problem with that. Since we are using CircleCI and our PhpUnit code fails and it gets reverted every time. So I need to set for PhpUnit different environment variable (I need it to use 'test', not 'default')

Is there a way to trigger a CircleCI build on a Pull Request?

怎甘沉沦 提交于 2021-02-08 15:32:53
问题 So, the problem I have is that right now CircleCI doesn't trigger builds on PRs, and I have checks that I'd like to run only on PRs. There is this option: Only build pull requests By default, we will build all the commits for this project. Once turned on, we will only build branches that have associated pull requests open. Note: For your default branch, we will always build all commits. However, this is not what I need, because I still need some checks to run on every commit, on all branches,

Is there a way to trigger a CircleCI build on a Pull Request?

一曲冷凌霜 提交于 2021-02-08 15:32:24
问题 So, the problem I have is that right now CircleCI doesn't trigger builds on PRs, and I have checks that I'd like to run only on PRs. There is this option: Only build pull requests By default, we will build all the commits for this project. Once turned on, we will only build branches that have associated pull requests open. Note: For your default branch, we will always build all commits. However, this is not what I need, because I still need some checks to run on every commit, on all branches,

Execution failed for task ‘:app:androidDependencies’ on Circle CI but not locally

人盡茶涼 提交于 2021-02-08 10:24:20
问题 Note that I posted this question on Circle CI's discussion forum too, so I'd like some feedback relating to my Gradle environment (i.e. downloading dependencies from Maven based on build type/variant), or heck, if you can help me out altogether on this issue as a whole! For some reason, I can't get the dependencies (Square's Reader SDK in this case, and yes, I confirmed with the Square team that only aar files should be downloaded instead of jar from Maven - note errors towards the bottom of

CircleCI DynamoDB Local

六眼飞鱼酱① 提交于 2021-02-08 04:29:12
问题 I'm trying to get it setup so CircleCI can use DynamoDB Local in my tests. I saw this link about how to install DynamoDB Local on CircleCI but it looks outdated since they have now moved to new syntax with CircleCI 2. How can I achieve this on the latest versions of CircleCI? 回答1: You can adapt the old instructions into the new, using the build step 'command'. You will have to play with it a bit to get it to work as I'm not familiar with the software: version: 2 jobs: build: docker: - image:

CircleCI: Cannot find a definition for executor named ubuntu?

三世轮回 提交于 2021-01-29 10:20:12
问题 I am trying to extend the orb that is already in use. We have used Docker before but now want to use a machine executor and maybe a windows executor in the future. I go through the documentation, but it is not clear if it is possible to have executors of different types and call them on the same jobs. Is it possible to have executors of different types in the same orb in CircleCI? I tried creating the executor ubuntu.yml : description: > The executor to run testcontainers without extra setup

Angular 7 CI rxjs/Operators cannot find module

ⅰ亾dé卋堺 提交于 2021-01-28 23:40:55
问题 I have tried setting up CI for my angular project using Circle CI following this configuration: https://angular.io/guide/testing#configure-project-for-circle-ci However, when ng test runs I get the following error: ERROR in src/app/account/login-form/login-form.component.ts(4,26): error TS2307: Cannot find module 'rxjs/Operators'. Locally, if I delete node_modules/ and run npm install followed by npm test I don't have any issue with rxjs. My package.json : "dependencies": { "@angular

Angular 7 CI rxjs/Operators cannot find module

喜你入骨 提交于 2021-01-28 22:45:59
问题 I have tried setting up CI for my angular project using Circle CI following this configuration: https://angular.io/guide/testing#configure-project-for-circle-ci However, when ng test runs I get the following error: ERROR in src/app/account/login-form/login-form.component.ts(4,26): error TS2307: Cannot find module 'rxjs/Operators'. Locally, if I delete node_modules/ and run npm install followed by npm test I don't have any issue with rxjs. My package.json : "dependencies": { "@angular