Commit 7e089314 by Carl Bergquist Committed by GitHub

Merge pull request #11688 from mjtrangoni/fix-gometalinter-circleci

fix CircleCI gometalinter test
parents 6b585493 fd20aa7c
...@@ -20,18 +20,19 @@ jobs: ...@@ -20,18 +20,19 @@ jobs:
gometalinter: gometalinter:
docker: docker:
- image: circleci/golang:1.10 - image: circleci/golang:1.10
environment:
# we need CGO because of go-sqlite3
CGO_ENABLED: 1
working_directory: /go/src/github.com/grafana/grafana working_directory: /go/src/github.com/grafana/grafana
steps: steps:
- checkout - checkout
- run: 'go get -u gopkg.in/alecthomas/gometalinter.v2'
- run: 'go get -u github.com/opennota/check/cmd/structcheck'
- run: 'go get -u github.com/mdempsky/unconvert'
- run: 'go get -u github.com/opennota/check/cmd/varcheck'
- run: - run:
name: install gometalinter tool name: run linters
command: 'go get -u github.com/alecthomas/gometalinter' command: 'gometalinter.v2 --enable-gc --vendor --deadline 10m --disable-all --enable=structcheck --enable=unconvert --enable=varcheck ./...'
- run:
name: install linters
command: 'gometalinter --install'
- run:
name: run some linters
command: 'gometalinter --vendor --deadline 6m --disable-all --enable=structcheck --enable=unconvert --enable=varcheck ./pkg/...'
test-frontend: test-frontend:
docker: docker:
...@@ -139,6 +140,10 @@ workflows: ...@@ -139,6 +140,10 @@ workflows:
filters: filters:
tags: tags:
only: /.*/ only: /.*/
- gometalinter:
filters:
tags:
only: /.*/
- build: - build:
filters: filters:
tags: tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment