Skip to content

Commit

Permalink
Merge pull request #13 from circleci/cache
Browse files Browse the repository at this point in the history
Cache gometalinter and goreleaser binaries
  • Loading branch information
Zachary Scott authored Jun 13, 2018
2 parents ec0808d + 07bbdb8 commit e518c58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,18 @@ jobs:
working_directory: /go/src/github.com/circleci/circleci-cli
steps:
- checkout
- restore_cache:
keys: [v1-gometalinter-]
- run:
name: Install
command: |
[[ -e /go/bin/gometalinter ]] && exit
go get -u github.com/alecthomas/gometalinter
gometalinter --install
- run: make lint
- save_cache:
key: v1-gometalinter-{{ checksum "/go/bin/gometalinter" }}
paths: [/go/bin/*]

deploy:
docker:
Expand All @@ -71,9 +77,12 @@ jobs:
working_directory: /go/src/github.com/circleci/circleci-cli
steps:
- checkout
- restore_cache:
keys: [v1-goreleaser-]
- run:
name: Install GoReleaser
command: |
[[ -e goreleaser ]] && exit
curl --silent --location --fail --retry 3 $GORELEASER_URL > /tmp/goreleaser_amd64.deb
sudo apt install /tmp/goreleaser_amd64.deb
- run:
Expand All @@ -86,3 +95,6 @@ jobs:
- run:
name: Release
command: goreleaser
- save_cache:
key: v1-goreleaser-{{ checksum "/usr/local/bin/goreleaser" }}
paths: [/usr/local/bin/goreleaser]

0 comments on commit e518c58

Please sign in to comment.