laconicd-deprecated/.circleci/config.yml
Austin Abell 69333ec1b3
circleCI config and linting fixes (#3)
* Fixed circleci config and fixed linting warnings

* Updated circleCI for go version 1.12 and split jobs for build/testing

* updated go version to 1.12.5 for circleCI

* Go mod tidy dependencies

* Updated linting tools and cleared up code lint smells

* Added workflow to run build and test jobs

* Moved linting command to build workflow

* Get dependencies before linting by default

* Added go module flag to linter and increased deadline to pull packages
2019-07-02 15:36:22 -04:00

53 lines
1.1 KiB
YAML

version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12.5
working_directory: /go/src/github.com/cosmos/ethermint
steps:
- checkout
- 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
- run:
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
working_directory: /go/src/github.com/cosmos/ethermint
steps:
- checkout
- restore_cache:
keys:
- go-mod-v0-{{ checksum "go.sum" }}
- run:
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