diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-07-26 13:35:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 13:35:35 +0800 |
commit | 3c2121f6ae6fa42899204ebc19bba08615f71904 (patch) | |
tree | 3e2440aa7cbd7c34f7d18ab8c9b160c8cd92c564 /.circleci/config.yml | |
parent | 39f62971de32373de715cdfb8b694832ed24806c (diff) | |
download | tangerine-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar tangerine-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.gz tangerine-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.bz2 tangerine-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.lz tangerine-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.xz tangerine-consensus-3c2121f6ae6fa42899204ebc19bba08615f71904.tar.zst tangerine-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/config.yml')
-rw-r--r-- | .circleci/config.yml | 14 |
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 |