.travis.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # http://docs.travis-ci.com/user/languages/go/#Default-Test-Script
  2. language: go
  3. sudo: false
  4. go: # https://github.com/atotto/travisci-golang-example
  5. - '1.4'
  6. - '1.5'
  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.3'
  18. - go: '1.4'
  19. branches:
  20. only: [master, develop]
  21. before_install:
  22. - mkdir -p "${GOPATH}/src/purl.mro.name/recorder"
  23. - cd "${GOPATH}/src/purl.mro.name/recorder" && ln -s "${TRAVIS_BUILD_DIR}/src" radio
  24. - ls -l "${GOPATH}/src/purl.mro.name/recorder"
  25. install:
  26. - go get
  27. github.com/stretchr/testify
  28. github.com/yhat/scrape
  29. github.com/bogem/id3v2
  30. - cp "${GOPATH}/src/github.com/bogem/id3v2/testdata/test.mp3" "${TRAVIS_BUILD_DIR}/src/enclosure-tag-cmd/testdata/file.mp3"
  31. - cp "${GOPATH}/src/github.com/bogem/id3v2/testdata/back_cover.jpg" "${TRAVIS_BUILD_DIR}/src/enclosure-tag-cmd/testdata/image.jpg"
  32. script:
  33. - go vet -x
  34. purl.mro.name/recorder/radio/scrape
  35. purl.mro.name/recorder/radio/scrape/br
  36. purl.mro.name/recorder/radio/scrape/b3
  37. purl.mro.name/recorder/radio/scrape/b4
  38. purl.mro.name/recorder/radio/scrape/dlf
  39. purl.mro.name/recorder/radio/scrape/m945
  40. purl.mro.name/recorder/radio/scrape/radiofabrik
  41. purl.mro.name/recorder/radio/scrape/wdr
  42. purl.mro.name/recorder/radio/scrape-cmd
  43. purl.mro.name/recorder/radio/enclosure-tag-cmd
  44. - go test -v
  45. purl.mro.name/recorder/radio/scrape
  46. purl.mro.name/recorder/radio/scrape/br
  47. purl.mro.name/recorder/radio/scrape/b3
  48. purl.mro.name/recorder/radio/scrape/b4
  49. purl.mro.name/recorder/radio/scrape/dlf
  50. purl.mro.name/recorder/radio/scrape/m945
  51. purl.mro.name/recorder/radio/scrape/radiofabrik
  52. purl.mro.name/recorder/radio/scrape/wdr
  53. purl.mro.name/recorder/radio/scrape-cmd
  54. purl.mro.name/recorder/radio/enclosure-tag-cmd