mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add gometalinter to circleci
This commit is contained in:
parent
33ae8d35ea
commit
3543f1c3d4
@ -17,6 +17,22 @@ jobs:
|
||||
name: check documentation spelling errors
|
||||
command: 'codespell -I ./words_to_ignore.txt docs/'
|
||||
|
||||
gometalinter:
|
||||
docker:
|
||||
- image: circleci/golang:1.10
|
||||
working_directory: /go/src/github.com/grafana/grafana
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: install gometalinter tool
|
||||
command: 'go get -u github.com/alecthomas/gometalinter'
|
||||
- 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 ./...'
|
||||
|
||||
test-frontend:
|
||||
docker:
|
||||
- image: circleci/node:6.11.4
|
||||
@ -123,6 +139,10 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- gometalinter:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- build:
|
||||
filters:
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user