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 | |
parent | 39f62971de32373de715cdfb8b694832ed24806c (diff) | |
download | dexon-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.
-rw-r--r-- | .circleci/config.yml | 14 | ||||
-rw-r--r-- | Gopkg.lock | 64 |
2 files changed, 74 insertions, 4 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 @@ -2,50 +2,106 @@ [[projects]] + digest = "1:a2c1d0e43bd3baaa071d1b9ed72c27d78169b2b269f71c105ac4ba34b1be4a39" name = "github.com/davecgh/go-spew" packages = ["spew"] + pruneopts = "UT" revision = "346938d642f2ec3594ed81d874461961cd0faa76" version = "v1.1.0" [[projects]] branch = "master" + digest = "1:4a0c6bb4805508a6287675fac876be2ac1182539ca8a32468d8128882e9d5009" name = "github.com/golang/snappy" packages = ["."] + pruneopts = "UT" revision = "2e65f85255dbc3072edf28d6b5b8efc472979f5a" [[projects]] + digest = "1:b56c589214f01a5601e0821387db484617392d0042f26234bf2da853a2f498a1" name = "github.com/naoina/go-stringutil" packages = ["."] + pruneopts = "UT" revision = "6b638e95a32d0c1131db0e7fe83775cbea4a0d0b" version = "v0.1.0" [[projects]] + digest = "1:ce268ac5ab983535f7372bf9d4f8e4807f51ea961f71510d73e433e164208e34" name = "github.com/naoina/toml" - packages = [".","ast"] + packages = [ + ".", + "ast", + ] + pruneopts = "UT" revision = "e6f5723bf2a66af014955e0888881314cf294129" version = "v0.1.1" [[projects]] + digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" name = "github.com/pmezard/go-difflib" packages = ["difflib"] + pruneopts = "UT" revision = "792786c7400a136282c1664665ae0a8db921c6c2" version = "v1.0.0" [[projects]] + digest = "1:38aee443dc6b1610660b68fb6ff259315aa4219c4772da84a410029a06bc1f76" name = "github.com/stretchr/testify" - packages = ["assert","require","suite"] + packages = [ + "assert", + "require", + "suite", + ] + pruneopts = "UT" revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" version = "v1.2.2" [[projects]] branch = "master" + digest = "1:922191411ad8f61bcd8018ac127589bb489712c1d1a0ab2497aca4b16de417d2" name = "github.com/syndtr/goleveldb" - packages = ["leveldb","leveldb/cache","leveldb/comparer","leveldb/errors","leveldb/filter","leveldb/iterator","leveldb/journal","leveldb/memdb","leveldb/opt","leveldb/storage","leveldb/table","leveldb/util"] + packages = [ + "leveldb", + "leveldb/cache", + "leveldb/comparer", + "leveldb/errors", + "leveldb/filter", + "leveldb/iterator", + "leveldb/journal", + "leveldb/memdb", + "leveldb/opt", + "leveldb/storage", + "leveldb/table", + "leveldb/util", + ] + pruneopts = "UT" revision = "c4c61651e9e37fa117f53c5a906d3b63090d8445" [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "fdad0896fd0b14f0f84c7b77ee9d6335968e200efa7d48562ed6e4a80b923d79" + input-imports = [ + "github.com/davecgh/go-spew/spew", + "github.com/golang/snappy", + "github.com/naoina/go-stringutil", + "github.com/naoina/toml", + "github.com/naoina/toml/ast", + "github.com/pmezard/go-difflib/difflib", + "github.com/stretchr/testify/assert", + "github.com/stretchr/testify/require", + "github.com/stretchr/testify/suite", + "github.com/syndtr/goleveldb/leveldb", + "github.com/syndtr/goleveldb/leveldb/cache", + "github.com/syndtr/goleveldb/leveldb/comparer", + "github.com/syndtr/goleveldb/leveldb/errors", + "github.com/syndtr/goleveldb/leveldb/filter", + "github.com/syndtr/goleveldb/leveldb/iterator", + "github.com/syndtr/goleveldb/leveldb/journal", + "github.com/syndtr/goleveldb/leveldb/memdb", + "github.com/syndtr/goleveldb/leveldb/opt", + "github.com/syndtr/goleveldb/leveldb/storage", + "github.com/syndtr/goleveldb/leveldb/table", + "github.com/syndtr/goleveldb/leveldb/util", + ] solver-name = "gps-cdcl" solver-version = 1 |