.travis.yml 631 B

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