Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame^] | 1 | language: go |
| 2 | |
| 3 | matrix: |
| 4 | include: |
| 5 | - go: 1.9.4 |
| 6 | - go: 1.10.0 |
| 7 | - go: tip |
| 8 | allow_failures: |
| 9 | - go: tip |
| 10 | |
| 11 | before_install: |
| 12 | - mkdir -p bin |
| 13 | - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.3/shellcheck |
| 14 | - chmod +x bin/shellcheck |
| 15 | script: |
| 16 | - PATH=$PATH:$PWD/bin go test -v ./... |
| 17 | - go build |
| 18 | - diff -u <(echo -n) <(gofmt -d -s .) |
| 19 | - if [ -z $NOVET ]; then |
| 20 | diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint'); |
| 21 | fi |