Skip to content

Commit

Permalink
Fix dependency cache handling in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmachado committed Jan 4, 2020
1 parent 54da485 commit d414f7f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
TEST_RESULTS: /tmp/test-results
steps:
- checkout
- restore_cache:
keys:
- v1-pkg-cache-{{ checksum "go.sum" }}
- run: mkdir -p $TEST_RESULTS
- run: go get -u github.com/jstemmer/go-junit-report
- run: go get -u github.com/mattn/goveralls
Expand All @@ -24,24 +27,25 @@ jobs:
# go get -u gopkg.in/alecthomas/gometalinter.v2
# gometalinter.v2 --install
# gometalinter.v2 --vendor ./...
- save_cache:
key: v1-pkg-cache-{{ checksum "go.sum" }}
paths:
- /go/pkg
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results
- persist_to_workspace:
root: .
paths:
- vendor

release:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/rcmachado/changelog
steps:
- checkout
- attach_workspace:
at: /go/src/github.com/rcmachado/changelog
- restore_cache:
keys:
- v1-pkg-cache-{{ checksum "go.sum" }}
- run: go get -v -t -d ./...
- run: go build -o changelog-current main.go
- run:
Expand Down

0 comments on commit d414f7f

Please sign in to comment.