Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
177 lines (176 sloc) 6.629 kb
language: cpp
compiler:
- gcc
- clang
before_script:
- git describe --always --dirty=+
- sudo /sbin/ip addr add 10.0.3.0/24 dev lo
- sudo /sbin/ip addr add 1.2.3.4/32 dev lo
- sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3-source.list
- sudo apt-get update -qq
- sudo apt-get install --quiet --quiet --no-install-recommends
alien
authbind
bc
bind9utils
daemontools
dnsutils
faketime
geoip-database
ldnsutils
libboost-all-dev
libbotan1.10-dev
libcdb-dev
libcdb-dev
libcurl4-openssl-dev
libgeoip-dev
libldap2-dev
liblua5.1-posix1
libnet-dns-perl
libopendbx1-dev
libopendbx1-sqlite3
libp11-kit-dev
libtolua-dev
libtool
links
moreutils
p11-kit
pkg-config
python-virtualenv
rpm
ruby-json
ruby-sqlite3
ruby1.9.1
rubygems
socat
softhsm
time
unbound-host
xmlto
- sudo sh -c 'sed s/precise/trusty/g /etc/apt/sources.list > /etc/apt/sources.list.d/trusty.list'
- sudo apt-get update --quiet --quiet
- sudo apt-get install --quiet --quiet liblmdb0 liblmdb-dev lmdb-utils libyaml-cpp-dev libzmq3-dev pandoc
- sudo pip install pandoc==1.0.0-alpha.3 pandocfilters mkdocs==0.11.1 linkchecker==9.3
- sudo update-alternatives --set ruby /usr/bin/ruby1.9.1
- sudo touch /etc/authbind/byport/53
- sudo chmod 755 /etc/authbind/byport/53
- wget ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-2.0.0.0-1-rhel-6-x86_64.tar.gz
- tar xzvf dnsperf-2.0.0.0-1-rhel-6-x86_64.tar.gz
- fakeroot alien --to-deb dnsperf-2.0.0.0-1/dnsperf-2.0.0.0-1.el6.x86_64.rpm
- sudo dpkg -i dnsperf_2.0.0.0-2_amd64.deb
- travis_retry gem install bundler --no-rdoc --no-ri
- cd regression-tests
- wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
- unzip top-1m.csv.zip
- cd ..
- cd modules/remotebackend
- travis_retry ruby -S bundle install
- cd ../..
- sudo mkdir -p /etc/pkcs11/modules/
- sudo cp -f regression-tests/softhsm.mod /etc/pkcs11/modules/softhsm
- sudo cp -f regression-tests/softhsm.conf /etc/softhsm/softhsm.conf
- sudo chmod 0755 /etc/softhsm/
- sudo chmod 0644 /etc/softhsm/softhsm.conf
- sudo chmod 0777 /var/lib/softhsm
- p11-kit -l # ensure it's ok
script:
- ./bootstrap
- ./configure
--with-dynmodules='bind geo geoip gmysql gpgsql gsqlite3 mydns tinydns remote random opendbx ldap lmdb lua'
--with-modules=''
--with-sqlite3
--enable-botan1.10
--enable-unit-tests
--enable-tools
--enable-remotebackend-zeromq
--enable-experimental-ed25519
--enable-experimental-pkcs11
--disable-silent-rules
--disable-dependency-tracking
- make -k dist
- make -k -j 4
- cd docs
- make check-links
- cd ..
- make -k install DESTDIR=/tmp/pdns-install-dir
- find /tmp/pdns-install-dir -ls
- make -j 4 check
- test -f pdns/test-suite.log && cat pdns/test-suite.log || true
- test -f modules/remotebackend/test-suite.log && cat modules/remotebackend/test-suite.log || true
- make -k -C pdns $(grep '(EXEEXT):' pdns/Makefile | cut -f1 -d\$ | grep -E -v 'dnsdist|calidns')
- cd pdns
- make -k -j 4 pdns_recursor
- rm -f pdns_recursor
- ./dist-recursor
- cd pdns-recursor-*/
- ./configure
- make -k -j 4
- cd ..
- ln -s pdns-recursor*/pdns_recursor .
- cd ../regression-tests.recursor
- cp vars.sample vars
- ./config.sh
- ./start.sh
- sleep 3
- svstat configs/*
- ./runtests
- test ! -s ./failed_tests
- ./stop.sh
- sleep 3
- ./clean.sh
- cd ../regression-tests.api
- ./runtests authoritative
- ./runtests recursor
- cd ../regression-tests
- touch tests/verify-dnssec-zone/allow-missing
- touch tests/verify-dnssec-zone/skip.nsec3 # some (travis) tools in this test are unable to handle nsec3 zones
- touch tests/verify-dnssec-zone/skip.optout
- export geoipregion=oc geoipregionip=1.2.3.4
- ./timestamp ./start-test-stop 5300 bind-both
- ./timestamp ./start-test-stop 5300 bind-dnssec-both
- ./timestamp ./start-test-stop 5300 bind-dnssec-pkcs11
- ./timestamp ./start-test-stop 5300 bind-dnssec-nsec3-both
- ./timestamp ./start-test-stop 5300 bind-dnssec-nsec3-optout-both
- ./timestamp ./start-test-stop 5300 bind-dnssec-nsec3-narrow
- ./timestamp ./start-test-stop 5300 bind-hybrid-nsec3
- ./timestamp ./start-test-stop 5300 geoipbackend
- ./timestamp ./start-test-stop 5300 geoipbackend-nsec3-narrow
- ./timestamp ./start-test-stop 5300 gmysql-nodnssec-both
- ./timestamp ./start-test-stop 5300 gmysql-both
- ./timestamp ./start-test-stop 5300 gmysql-nsec3-both
- ./timestamp ./start-test-stop 5300 gmysql-nsec3-optout-both
- ./timestamp ./start-test-stop 5300 gmysql-nsec3-narrow
- ./timestamp ./start-test-stop 5300 gpgsql-nodnssec-both
- ./timestamp ./start-test-stop 5300 gpgsql-both
- ./timestamp ./start-test-stop 5300 gpgsql-nsec3-both
- ./timestamp ./start-test-stop 5300 gpgsql-nsec3-optout-both
- ./timestamp ./start-test-stop 5300 gpgsql-nsec3-narrow
- ./timestamp ./start-test-stop 5300 gsqlite3-nodnssec-both
- ./timestamp ./start-test-stop 5300 gsqlite3-both
- ./timestamp ./start-test-stop 5300 gsqlite3-nsec3-both
- ./timestamp ./start-test-stop 5300 gsqlite3-nsec3-optout-both
- ./timestamp ./start-test-stop 5300 gsqlite3-nsec3-narrow
- ./timestamp ./start-test-stop 5300 lmdb-nodnssec
- ./timestamp ./start-test-stop 5300 mydns
- ./timestamp ./start-test-stop 5300 opendbx-sqlite3
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-pipe # Workaround for remotebackend failures on travis-ci
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-pipe-dnssec
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-unix
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-unix-dnssec
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-http
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-http-dnssec
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-zeromq
- travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-zeromq-dnssec
- ./timestamp ./start-test-stop 5300 tinydns
- THRESHOLD=90 TRACE=no ./timestamp ./recursor-test 5300
- cd ../regression-tests.nobackend/
- ./runtests
- test ! -s ./failed_tests
notifications:
irc:
channels:
- "irc.oftc.net#powerdns-dev"
template:
- "%{author} @ %{repository} / %{branch} - Build:#%{build_number} : %{message} - Changes: %{compare_url} - Build details: %{build_url}"
use_notice: true
skip_join: true
Jump to Line
Something went wrong with that request. Please try again.