Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit 73cf6d9

Browse files
authored
Moved linting from build process in circleCI (#69)
1 parent d982e09 commit 73cf6d9

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.circleci/config.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,30 @@ jobs:
1212
keys:
1313
- go-mod-v0-{{ checksum "go.sum" }}
1414
- run:
15-
name: Get tools and verify dependencies
16-
command: make tools verify
15+
name: Verify Dependencies and compile binaries for daemon and cli
16+
command: make verify build
17+
- save_cache:
18+
key: go-mod-v0-{{ checksum "go.sum" }}
19+
paths:
20+
- "/go/pkg/mod"
21+
22+
lint:
23+
docker:
24+
- image: circleci/golang:1.12.5
25+
26+
working_directory: /go/src/github.com/cosmos/ethermint
27+
28+
steps:
29+
- checkout
30+
- restore_cache:
31+
keys:
32+
- go-mod-v0-{{ checksum "go.sum" }}
33+
- run:
34+
name: Get tools
35+
command: make tools
1736
- run:
1837
name: Run linter
1938
command: make test-lint
20-
- run:
21-
name: Compile binaries for daemon and cli
22-
command: make build
2339
- save_cache:
2440
key: go-mod-v0-{{ checksum "go.sum" }}
2541
paths:
@@ -49,4 +65,5 @@ workflows:
4965
build-workflow:
5066
jobs:
5167
- build
68+
- lint
5269
- test

0 commit comments

Comments
 (0)