Moved linting from build process in circleCI (#69)

This commit is contained in:
Austin Abell 2019-07-11 10:54:28 -04:00 committed by GitHub
parent d982e0961a
commit 73cf6d9217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,14 +12,30 @@ jobs:
keys: keys:
- go-mod-v0-{{ checksum "go.sum" }} - go-mod-v0-{{ checksum "go.sum" }}
- run: - run:
name: Get tools and verify dependencies name: Verify Dependencies and compile binaries for daemon and cli
command: make tools verify command: make verify build
- save_cache:
key: go-mod-v0-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
lint:
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
command: make tools
- run: - run:
name: Run linter name: Run linter
command: make test-lint command: make test-lint
- run:
name: Compile binaries for daemon and cli
command: make build
- save_cache: - save_cache:
key: go-mod-v0-{{ checksum "go.sum" }} key: go-mod-v0-{{ checksum "go.sum" }}
paths: paths:
@ -49,4 +65,5 @@ workflows:
build-workflow: build-workflow:
jobs: jobs:
- build - build
- lint
- test - test