Skip to content

Commit

Permalink
Use GOCACHE in .circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
krhubert committed Oct 30, 2018
1 parent 3cbd0a3 commit c3fbfad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@ runOnDocker: &runOnDocker
jobs:
"test":
<<: *runOnDocker
environment:
- GOCACHE: "/tmp/go/cache"
steps:
- checkout
- setup_remote_docker
- run: docker swarm init
- run: docker build -t sleep docker-images/sleep/
- run: docker build -t http-server docker-images/http-server/
- restore_cache:
keys:
- test-cache-{{ .Branch }}-{{ .BuildNum }}
- test-cache-{{ .Branch }}
- run: go test -v -timeout 300s -p 1 -tags=integration -coverprofile=coverage.txt ./...
- save_cache:
key: test-cache-{{ .Branch }}-{{ .BuildNum }}
paths:
- /tmp/go/cache
- run: bash <(curl -s https://codecov.io/bash)

"publish_docker_dev":
Expand Down

0 comments on commit c3fbfad

Please sign in to comment.