.travis.yml 864 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. # http://docs.travis-ci.com/user/languages/go/#Default-Test-Script
  3. language: go
  4. go: # https://github.com/atotto/travisci-golang-example
  5. - '1.7'
  6. - '1.8'
  7. - stable
  8. - master
  9. #env:
  10. # matrix:
  11. # - GOOS=linux
  12. # - GOOS=darwin
  13. # - GOOS=freebsd
  14. # - GOOS=windows
  15. matrix:
  16. allow_failures:
  17. - go: '1.7'
  18. - go: master
  19. branches:
  20. only: [master, develop]
  21. install:
  22. - go get github.com/gorilla/sessions
  23. - go get github.com/jteeuwen/go-bindata/...
  24. - go get github.com/yhat/scrape
  25. - go get golang.org/x/crypto/bcrypt
  26. - go get golang.org/x/net/html
  27. - go get golang.org/x/net/html/atom
  28. - go get golang.org/x/text/language
  29. - go get golang.org/x/text/search
  30. - go get gopkg.in/yaml.v2
  31. # for testing only:
  32. - go get github.com/stretchr/testify
  33. - go get golang.org/x/tools/blog/atom
  34. script:
  35. - go-bindata -ignore=.DS_Store -prefix static static/... tpl/...
  36. - go vet
  37. - go test -v