.travis.yml 973 Bytes
Newer Older
1
2
3
language: go

go:
4
5
  - "1.9.x"
  - "1.10.x"
6
7
8
9
10
11
12
13
14
15
16

# 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:
Marten Seemann's avatar
Marten Seemann committed
17
  - make deps
18
19
20
  - export GOARCH=$TRAVIS_GOARCH
  - go env # for debugging

21
22
23
24
# see https://github.com/travis-ci/travis-ci/issues/8361#issuecomment-350090030
before_script:
  - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'

25
script:
26
  - ginkgo -r -v --cover --randomizeAllSpecs --randomizeSuites --trace --progress
Marten Seemann's avatar
Marten Seemann committed
27
28

after_success:
Marten Seemann's avatar
Marten Seemann committed
29
  - cat go-libp2p-quic-transport.coverprofile > coverage.txt
Marten Seemann's avatar
Marten Seemann committed
30
31
  - cat */*.coverprofile >> coverage.txt
  - bash <(curl -s https://codecov.io/bash) -f coverage.txt
Marten Seemann's avatar
Marten Seemann committed
32
33
34
35

cache:
  directories:
    - $GOPATH/src/gx