-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
221ef98
commit 9bf2334
Showing
1 changed file
with
15 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/... |