2016-07-27 10:01:24 -07:00
|
|
|
sudo: required
|
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
- docker
|
|
|
|
|
|
2016-03-18 20:57:35 +00:00
|
|
|
language: go
|
|
|
|
|
go:
|
2018-08-30 13:29:03 +01:00
|
|
|
- "1.11.x"
|
2016-07-27 10:01:24 -07:00
|
|
|
|
2017-02-21 22:51:47 -08:00
|
|
|
go_import_path: github.com/coredns/coredns
|
2016-09-26 14:22:07 +08:00
|
|
|
|
2017-08-19 17:02:16 +01:00
|
|
|
git:
|
|
|
|
|
depth: 3
|
2016-09-27 07:57:04 +08:00
|
|
|
|
2018-09-22 15:17:17 +01:00
|
|
|
branches:
|
|
|
|
|
only:
|
|
|
|
|
- master
|
|
|
|
|
|
2017-08-19 17:02:16 +01:00
|
|
|
env:
|
2018-06-30 20:49:13 +05:30
|
|
|
- TEST_TYPE=coverage ETCD_VERSION=3.3.8
|
|
|
|
|
- TEST_TYPE=integration ETCD_VERSION=3.3.8
|
|
|
|
|
- TEST_TYPE=core ETCD_VERSION=3.3.8
|
|
|
|
|
- TEST_TYPE=plugin ETCD_VERSION=3.3.8
|
2017-08-19 17:53:31 +01:00
|
|
|
|
2016-07-27 10:01:24 -07:00
|
|
|
# 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. The VM environment
|
2016-08-19 17:14:17 -07:00
|
|
|
# is needed to have access to sudo in the test environment. Sudo is
|
2017-10-25 15:40:48 -04:00
|
|
|
# needed to have docker in the test environment.
|
|
|
|
|
|
2016-07-27 10:01:24 -07:00
|
|
|
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
|
|
|
|
|
|
2016-04-10 18:50:11 +01:00
|
|
|
before_script:
|
2016-09-27 07:57:04 +08:00
|
|
|
- docker run -d --net=host --name=etcd quay.io/coreos/etcd:v$ETCD_VERSION
|
2018-09-22 15:17:17 +01:00
|
|
|
- make godeps
|
2016-07-27 10:01:24 -07:00
|
|
|
|
2016-03-19 14:55:26 +00:00
|
|
|
script:
|
2017-08-19 17:02:16 +01:00
|
|
|
- make TEST_TYPE=$TEST_TYPE travis
|
2016-09-18 11:01:57 -07:00
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2018-09-25 15:04:27 -07:00
|
|
|
- bash .benchmark.sh
|