aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-07-26 13:35:35 +0800
committerGitHub <noreply@github.com>2018-07-26 13:35:35 +0800
commit3c2121f6ae6fa42899204ebc19bba08615f71904 (patch)
tree3e2440aa7cbd7c34f7d18ab8c9b160c8cd92c564 /.circleci
parent39f62971de32373de715cdfb8b694832ed24806c (diff)
downloaddexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar
dexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.gz
dexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.bz2
dexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.lz
dexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.xz
dexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.zst
dexon-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.zip
Use cache to do `dep ensure` faster in circleci (#17)
Use cache to do `dep ensure` faster in circleci.
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index d0d618d..7611454 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -10,9 +10,23 @@ jobs:
steps:
- checkout
+ - restore_cache:
+ keys:
+ - v1-Gopkg.lock-{{ .Branch }}-{{ checksum "Gopkg.toml" }}
+ - restore_cache:
+ keys:
+ - v1-vendor-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
- run: bin/install_tools.sh
- run: make check-format
- run: dep ensure
+ - save_cache:
+ key: v1-Gopkg.lock-{{ .Branch }}-{{ checksum "Gopkg.toml" }}
+ paths:
+ - Gopkg.lock
+ - save_cache:
+ key: v1-vendor-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
+ paths:
+ - vendor
- run: make lint
- run: make vet
- run: make test