hello-dns/.travis.yml

30 lines
1.1 KiB
YAML
Raw Normal View History

2018-04-14 02:15:48 +07:00
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
2018-04-14 02:15:48 +07:00
script:
2018-04-14 02:17:50 +07:00
- cd tdns
2018-04-14 02:15:48 +07:00
- make
- make check
2018-10-25 22:18:27 +07:00
- 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)
2018-10-25 22:18:27 +07:00
- sudo killall tauth
- sleep 5
2018-10-25 22:18:27 +07:00
- if [ $FAILCOUNT != 0 ] ; then cat genreport.out ; cat tauth.log ; false ; fi