Skip to content

Commit

Permalink
Circle 2.0 (#749)
Browse files Browse the repository at this point in the history
* Machine translated

* Reset to zero

* Fix typo in image name

* Try to get Docker working in the environment

* Incremental progress

* Debug incremental progress

* Debug incremental progress

* Final bits, first attempt

* The 'build' name is important

* The docker executor can't run docker services

* Machine uses a different GOPATH
  • Loading branch information
peterbourgon authored Aug 9, 2018
1 parent 221ef98 commit 9bf2334
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
- sudo rm -rf /usr/local/go
- curl -sSL https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz | sudo tar xz -C /usr/local
services:
- docker
version: 2

dependencies:
pre:
- sudo curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose -f docker-compose-integration.yml up -d --force-recreate

test:
pre:
- mkdir -p /home/ubuntu/.go_workspace/src/github.com/go-kit
- mv /home/ubuntu/kit /home/ubuntu/.go_workspace/src/github.com/go-kit
- ln -s /home/ubuntu/.go_workspace/src/github.com/go-kit/kit /home/ubuntu/kit
- go get -t github.com/go-kit/kit/...
override:
- go test -v -race -tags integration github.com/go-kit/kit/...:
environment:
ETCD_ADDR: http://localhost:2379
CONSUL_ADDR: localhost:8500
ZK_ADDR: localhost:2181
EUREKA_ADDR: http://localhost:8761/eureka
jobs:
build:
machine: true
working_directory: /home/circleci/.go_workspace/src/github.com/go-kit/kit
environment:
ETCD_ADDR: http://localhost:2379
CONSUL_ADDR: localhost:8500
ZK_ADDR: localhost:2181
EUREKA_ADDR: http://localhost:8761/eureka
steps:
- checkout
- run: docker-compose -f docker-compose-integration.yml up -d --force-recreate
- run: go get -t github.com/go-kit/kit/...
- run: go test -v -race -tags integration github.com/go-kit/kit/...

0 comments on commit 9bf2334

Please sign in to comment.