blob: 1f681e5a1cf0e52ca149f1b9ebf3d572858e18e3 (
plain) (
tree)
|
|
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/dexon-foundation/dexon-consensus-core
environment:
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 eth-dep
- run: make lint
- run: make vet
- run: make test
- run: make
|