diff options
author | Duco van Amstel <duco.vanamstel@gmail.com> | 2018-12-05 10:34:34 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2018-12-05 11:34:34 +0100 |
commit | 8a7efce941acf7123481d58c6bf5b5421c25736d (patch) | |
tree | 7d14beb624b2f81be630664bbf12904731aac0d4 /.travis.yml | |
parent | ce73aa5a744bcbd3c076b141814d424268a19a7f (diff) | |
download | matterbridge-msglm-8a7efce941acf7123481d58c6bf5b5421c25736d.tar.gz matterbridge-msglm-8a7efce941acf7123481d58c6bf5b5421c25736d.tar.bz2 matterbridge-msglm-8a7efce941acf7123481d58c6bf5b5421c25736d.zip |
Move golangci-lint configuration to file (#635)
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 8c889002..4dd02ee5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ git: env: global: - GOOS=linux GOARCH=amd64 + - GOLANGCI_VERSION="v1.12.3" matrix: # It's ok if our code fails on unstable development versions of Go. @@ -26,9 +27,9 @@ notifications: before_script: # Get version info from tags. - - MY_VERSION=$(git describe --tags) + - MY_VERSION="$(git describe --tags)" # Retrieve the golangci-lint linter binary. - - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.12.2 + - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b ${GOPATH}/bin ${GOLANGCI_VERSION} # Retrieve and prepare CodeClimate's test coverage reporter. - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter @@ -36,7 +37,7 @@ before_script: script: # Run the linter. - - golangci-lint run --enable-all -D lll -D errcheck -D gosec -D maligned -D prealloc -D gocyclo -D gochecknoglobals + - golangci-lint run # Run all the tests with the race detector and generate coverage. - go test -v -race -coverprofile c.out ./... # Run the build script to generate the necessary binaries and images. |