.travis.yml 633 Bytes
Newer Older
Marten Seemann's avatar
Marten Seemann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
language: go

go:
  - "1.10.x"
  - "1.11.x"

# first part of the GOARCH workaround
# setting the GOARCH directly doesn't work, since the value will be overwritten later
# so set it to a temporary environment variable first
env:
  - TRAVIS_GOARCH=amd64
  - TRAVIS_GOARCH=386

# second part of the GOARCH workaround
# now actually set the GOARCH env variable to the value of the temporary variable set earlier
before_install:
  - make deps
  - export GOARCH=$TRAVIS_GOARCH
  - go env # for debugging

script:
  - ginkgo -r -v --cover --randomizeAllSpecs --randomizeSuites --trace --progress

cache:
  directories:
    - $GOPATH/src/gx