2018-08-01 00:29:33 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2019-07-02 19:36:22 +00:00
|
|
|
- image: circleci/golang:1.12.5
|
2018-08-01 00:29:33 +00:00
|
|
|
|
|
|
|
working_directory: /go/src/github.com/cosmos/ethermint
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-07-02 19:36:22 +00:00
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- go-mod-v0-{{ checksum "go.sum" }}
|
|
|
|
- run:
|
|
|
|
name: Get tools and verify dependencies
|
|
|
|
command: make tools verify
|
|
|
|
- run:
|
|
|
|
name: Run linter
|
|
|
|
command: make test-lint
|
2018-08-01 00:32:05 +00:00
|
|
|
- run:
|
2019-07-02 19:36:22 +00:00
|
|
|
name: Compile binaries for daemon and cli
|
|
|
|
command: make build
|
|
|
|
- save_cache:
|
|
|
|
key: go-mod-v0-{{ checksum "go.sum" }}
|
|
|
|
paths:
|
|
|
|
- "/go/pkg/mod"
|
|
|
|
|
|
|
|
test:
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:1.12.5
|
2018-08-01 00:32:05 +00:00
|
|
|
|
2019-07-02 19:36:22 +00:00
|
|
|
working_directory: /go/src/github.com/cosmos/ethermint
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- go-mod-v0-{{ checksum "go.sum" }}
|
2018-08-01 00:32:05 +00:00
|
|
|
- run:
|
2019-07-02 19:36:22 +00:00
|
|
|
name: Run all tests
|
|
|
|
command: make test-unit test-import
|
|
|
|
- save_cache:
|
|
|
|
key: go-mod-v0-{{ checksum "go.sum" }}
|
|
|
|
paths:
|
|
|
|
- "/go/pkg/mod"
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build-workflow:
|
|
|
|
jobs:
|
|
|
|
- build
|
|
|
|
- test
|