Add linting

This commit is contained in:
Calle Pettersson
2018-10-02 09:25:01 +02:00
committed by Calle Pettersson
parent 2053dea3ac
commit 76ddad34b8
3 changed files with 11 additions and 3 deletions

View File

@@ -12,11 +12,15 @@ clone_folder: c:\gopath\src\github.com\martinlindhe\wmi_exporter
install:
- set PATH=%GOPATH%\bin;%PATH%
- go get -u github.com/prometheus/promu
- go get -u github.com/alecthomas/gometalinter && gometalinter --install
- choco install gitversion.portable make -y
test_script:
- make test
after_test:
- make lint
build_script:
- ps: |
$ErrorActionPreference = "Stop"