-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
29 lines (29 loc) · 1.12 KB
/
.travis.yml
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
language: cpp
sudo: required
dist: trusty
before_script:
- sudo apt-get install -yq --no-install-suggests software-properties-common
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -y
- sudo apt-get install -yq --no-install-suggests gcc-5 g++-5 libboost-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install make
- pushd /tmp
- git clone https://gitlab.isc.org/isc-projects/DNS-Compliance-Testing.git
- cd DNS-Compliance-Testing
- git checkout 5c207eef7f7f655fbf91f43b44fd285511d253c9
- autoreconf -vfi
- ./configure
- sudo make install
- popd
script:
- cd tdns
- make
- make check
- sudo ./tauth 127.0.0.1 > tauth.log &
- sleep 5
- echo 'tdns.powerdns.org localhost 127.0.0.1' | genreport -4 -f -I opcode -I opcodeflg -d > genreport.out
- FAILCOUNT=$(tail -n 1 genreport.out | cut -f2 '-d:' | xargs -n1 echo | grep -v =ok | wc -l)
- sudo killall tauth
- sleep 5
- if [ $FAILCOUNT != 0 ] ; then cat genreport.out ; cat tauth.log ; false ; fi