.travis.yml 880 Bytes
Newer Older
Marten Seemann's avatar
Marten Seemann committed
1 2 3
language: go

go:
Marten Seemann's avatar
Marten Seemann committed
4
  - "1.12rc1"
Marten Seemann's avatar
Marten Seemann committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

# 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:
21 22 23 24
  # some tests are randomized. Run them a few times.
  - for i in `seq 1 3`; do
      ginkgo -r -v --cover --randomizeAllSpecs --randomizeSuites --trace --progress;
    done
Marten Seemann's avatar
Marten Seemann committed
25

Marten Seemann's avatar
Marten Seemann committed
26 27 28 29 30
after_success:
  - cat go-libp2p-tls.coverprofile > coverage.txt
  - cat */*.coverprofile >> coverage.txt
  - bash <(curl -s https://codecov.io/bash) -f coverage.txt

Marten Seemann's avatar
Marten Seemann committed
31 32 33
cache:
  directories:
    - $GOPATH/src/gx