.travis.yml

 1language: go
 2
 3stages:
 4  - diff
 5  - test
 6
 7go:
 8  - 1.10.x
 9  - 1.11.x
10  - 1.12.x
11  - tip
12
13matrix:
14  allow_failures:
15    - go: tip
16  include:
17    - stage: diff
18      go: 1.12.x
19      script: diff -u <(echo -n) <(gofmt -d -s .)
20
21before_install:
22  - mkdir -p bin
23  - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.6.0/shellcheck
24  - chmod +x bin/shellcheck
25  - go get -u github.com/kyoh86/richgo
26script:
27  - PATH=$PATH:$PWD/bin richgo test -v ./...
28  - go build
29  - if [ -z $NOVET ]; then
30      diff -u <(echo -n) <(go vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint');
31    fi