blob: 5eb24e42d5b4ebc7a251c48a937be2816796d41a (
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
|
language: go
sudo: required
go:
- "1.13"
- "1.14"
- "1.15"
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)
|