2019-06-06 00:40:29 +02:00
|
|
|
language: go
|
2019-06-20 07:39:19 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- go: 1.9.4
|
|
|
|
- go: 1.10.0
|
|
|
|
- go: tip
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- mkdir -p bin
|
|
|
|
- curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.3/shellcheck
|
|
|
|
- chmod +x bin/shellcheck
|
2019-06-06 00:40:29 +02:00
|
|
|
script:
|
2019-06-20 07:39:19 +02:00
|
|
|
- PATH=$PATH:$PWD/bin go test -v ./...
|
2019-06-06 00:40:29 +02:00
|
|
|
- go build
|
2019-06-20 07:39:19 +02:00
|
|
|
- diff -u <(echo -n) <(gofmt -d -s .)
|
|
|
|
- if [ -z $NOVET ]; then
|
|
|
|
diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
|
|
|
|
fi
|