Files
coredns/.travis.yml
Miek Gieben e3f9a80b1d WIP: travis changes (#2766)
* WIP: travis changes

Simplify Travis so it fails less often.

We don't need docker any more, let alone trusty and sudo, so simplifies
this, to just os: linux.

Signed-off-by: Miek Gieben <miek@miek.nl>

* This?

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-04-06 14:38:51 +01:00

43 lines
905 B
YAML

dist: xenial
language: go
go:
- "1.12.x"
cache:
directories:
- $GOPATH/pkg/mod
go_import_path: github.com/coredns/coredns
git:
depth: 1
branches:
only:
- master
env:
- TEST_TYPE=coverage
- TEST_TYPE=integration
- TEST_TYPE=core
- TEST_TYPE=plugin
# In the Travis VM-based build environment, IPv6 networking is not
# enabled by default. The sysctl operations below enable IPv6.
# IPv6 is needed by some of the CoreDNS test cases.
before_install:
- cat /proc/net/if_inet6
- uname -a
- sudo bash -c 'if [ `cat /proc/net/if_inet6 | wc -l` = "0" ]; then echo "Enabling IPv6" ; sysctl net.ipv6.conf.all.disable_ipv6=0 ; sysctl net.ipv6.conf.default.disable_ipv6=0 ; sysctl net.ipv6.conf.lo.disable_ipv6=0 ; fi'
- cat /proc/net/if_inet6
- env
script:
- make TEST_TYPE=$TEST_TYPE travis
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash .benchmark.sh