5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 10:30:26 +00:00

Upgrade linter and travis to go1.13 (#949)

This commit is contained in:
Wim 2019-11-17 23:16:06 +01:00 committed by GitHub
parent 075ca9ca47
commit aae45a8179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -174,6 +174,7 @@ linters:
- lll - lll
- maligned - maligned
- prealloc - prealloc
- wsl
# rules to deal with reported isues # rules to deal with reported isues

View File

@ -20,22 +20,22 @@ jobs:
- stage: lint - stage: lint
# Run linting in one Go environment only. # Run linting in one Go environment only.
script: ./ci/lint.sh script: ./ci/lint.sh
go: 1.12.x go: 1.13.x
env: env:
- GO111MODULE=on - GO111MODULE=on
- GOLANGCI_VERSION="v1.17.1" - GOLANGCI_VERSION="v1.21.0"
- stage: test - stage: test
# Run tests in a combination of Go environments. # Run tests in a combination of Go environments.
script: ./ci/test.sh script: ./ci/test.sh
go: 1.11.x go: 1.12.x
env: env:
- GO111MODULE=off - GO111MODULE=off
- script: ./ci/test.sh - script: ./ci/test.sh
go: 1.11.x go: 1.12.x
env: env:
- GO111MODULE=on - GO111MODULE=on
- script: ./ci/test.sh - script: ./ci/test.sh
go: 1.12.x go: 1.13.x
env: env:
- GO111MODULE=on - GO111MODULE=on
- REPORT_COVERAGE=1 - REPORT_COVERAGE=1

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -u -e -x -o pipefail set -u -e -x -o pipefail
go version | grep go1.12 || exit go version | grep go1.13 || exit
VERSION=$(git describe --tags) VERSION=$(git describe --tags)
mkdir ci/binaries mkdir ci/binaries