.travis.yml 470 B

1234567891011121314151617181920212223242526272829303132
  1. go_import_path: github.com/spf13/viper
  2. language: go
  3. env:
  4. global:
  5. - GO111MODULE="on"
  6. - GOFLAGS="-mod=readonly"
  7. go:
  8. - 1.11.x
  9. - 1.12.x
  10. - 1.13.x
  11. - tip
  12. os:
  13. - linux
  14. - osx
  15. matrix:
  16. allow_failures:
  17. - go: tip
  18. fast_finish: true
  19. script:
  20. - go install ./...
  21. - diff -u <(echo -n) <(gofmt -d .)
  22. - go test -v ./...
  23. after_success:
  24. - go get -u -d github.com/spf13/hugo
  25. - cd $GOPATH/src/github.com/spf13/hugo && make && ./hugo -s docs && cd -