summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: f25774322319ed1e0c32cb8f79da4705ae0016ea (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
language: go

sudo: required

go:
  - "1.11"
  - "1.12"
  - "1.13"
  - tip

env:
  - TEST_SUITE=unit
  - TEST_SUITE=linters

before_install:
  - go get -t -v ./...

before_script:
  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
    fi

script: |
  set -x
  case $TEST_SUITE in
  unit)
    ./.travis/tests.sh
    ;;
  linters)
    ./.travis/linters.sh
    ;;
  *)
    echo "[!] Unknown test suite: ${TEST_SUITE}. Exiting."
    exit 1
  esac

after_success:
  - bash <(curl -s https://codecov.io/bash)