Skip to content

Commit

Permalink
fix ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
karzak committed Oct 15, 2019
1 parent 107431a commit 0e38914
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,33 @@ commands:
jobs:
setup-dependencies:
executor: golang
steps:
- checkout
- restore_cache:
name: "Restore go modules cache"
keys:
- go-mod-v2-{{ checksum "go.sum" }}
- run:
name: Cache go modules
command: make go-mod-cache
- run:
name: Build
command: make build
- run:
name: Git garbage collection
command: git gc
- save_cache:
name: "Save go modules cache"
key: go-mod-v2-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- save_cache:
name: "Save source code cache"
key: go-src-v1-{{ .Revision }}
paths:
- ".git"
setup-dependencies-tags:
executor: golang
steps:
- checkout
Expand Down

0 comments on commit 0e38914

Please sign in to comment.