.travis.yml 991 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. dist: trusty
  2. group: travis_latest
  3. language: go
  4. go:
  5. - "1.12.x"
  6. # first part of the GOARCH workaround
  7. # setting the GOARCH directly doesn't work, since the value will be overwritten later
  8. # so set it to a temporary environment variable first
  9. env:
  10. global:
  11. - TIMESCALE_FACTOR=20
  12. - GO111MODULE=on
  13. matrix:
  14. - TRAVIS_GOARCH=amd64 TESTMODE=lint
  15. - TRAVIS_GOARCH=amd64 TESTMODE=unit
  16. - TRAVIS_GOARCH=amd64 TESTMODE=integration
  17. - TRAVIS_GOARCH=386 TESTMODE=unit
  18. - TRAVIS_GOARCH=386 TESTMODE=integration
  19. # second part of the GOARCH workaround
  20. # now actually set the GOARCH env variable to the value of the temporary variable set earlier
  21. before_install:
  22. - go get golang.org/x/tools/cmd/cover
  23. - go get github.com/onsi/ginkgo/ginkgo
  24. - go get github.com/onsi/gomega
  25. - export GOARCH=$TRAVIS_GOARCH
  26. - go env # for debugging
  27. - "export DISPLAY=:99.0"
  28. - "Xvfb $DISPLAY &> /dev/null &"
  29. script:
  30. - .travis/script.sh
  31. after_success:
  32. - .travis/after_success.sh