blob: dba53869ab383787761494f16a1301c5956ef35c (
plain) (
tree)
|
|
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/dexon-foundation/dexon-consensus
environment:
steps:
- run:
name: Install Dependency Libraries
command: |
sudo apt update
sudo apt-get install openssl libssl-dev libgmp-dev
- 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 dep
- run: make lint
- run: make vet
- run:
name: Unit Test
no_output_timeout: 900
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
make test
else
make test-short
fi
- run: make
|