From 73cf6d9217be1d658fbdfe69622a96f08cdefc99 Mon Sep 17 00:00:00 2001 From: Austin Abell Date: Thu, 11 Jul 2019 10:54:28 -0400 Subject: [PATCH] Moved linting from build process in circleCI (#69) --- .circleci/config.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1f5b704d..082ea72f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,14 +12,30 @@ jobs: keys: - go-mod-v0-{{ checksum "go.sum" }} - run: - name: Get tools and verify dependencies - command: make tools verify + name: Verify Dependencies and compile binaries for daemon and cli + 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: 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: @@ -49,4 +65,5 @@ workflows: build-workflow: jobs: - build + - lint - test