]>
Commit | Line | Data |
---|---|---|
7b8f4fc1 PD |
1 | language: cpp |
2 | compiler: | |
3 | - gcc | |
f032a91a | 4 | - clang |
7b8f4fc1 | 5 | before_script: |
aa89a8c9 | 6 | - git describe --always --dirty=+ |
a2e5c282 | 7 | - sudo sysctl net.ipv6.conf.lo.disable_ipv6=0 |
6d1a3b7a | 8 | - sudo /sbin/ip addr add 10.0.3.0/24 dev lo |
709ca59f | 9 | - sudo /sbin/ip addr add 1.2.3.4/32 dev lo |
a7db8aa6 | 10 | - sudo rm /etc/apt/sources.list.d/travis_ci_zeromq3-source.list |
0c5c96b1 | 11 | - sudo apt-get update |
12ad2b24 | 12 | - sudo apt-get install --no-install-recommends libboost-all-dev libtolua-dev bc libcdb-dev libnet-dns-perl unbound-host ldnsutils dnsutils bind9utils libtool libcdb-dev xmlto links asciidoc ruby-json ruby-sqlite3 rubygems libcurl4-openssl-dev ruby1.9.1 socat time pkg-config daemontools authbind liblua5.1-posix1 libopendbx1-dev libopendbx1-sqlite3 python-virtualenv libldap2-dev softhsm libp11-kit-dev p11-kit moreutils geoip-database |
6a85d81e MZ |
13 | - sudo sh -c 'sed s/precise/trusty/g /etc/apt/sources.list > /etc/apt/sources.list.d/trusty.list' |
14 | - sudo apt-get update | |
791bc370 | 15 | - sudo apt-get install liblmdb0 liblmdb-dev lmdb-utils libyaml-cpp-dev libzmq3-dev libgeoip-dev |
b210dd81 | 16 | - sudo update-alternatives --set ruby /usr/bin/ruby1.9.1 |
6d1a3b7a PD |
17 | - sudo touch /etc/authbind/byport/53 |
18 | - sudo chmod 755 /etc/authbind/byport/53 | |
bf342f8b | 19 | - travis_retry gem install bundler --no-rdoc --no-ri |
be80e5f9 KM |
20 | - cd regression-tests |
21 | - wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip | |
22 | - unzip top-1m.csv.zip | |
23 | - cd .. | |
c26c80db | 24 | - cd modules/remotebackend |
bf342f8b | 25 | - travis_retry ruby -S bundle install |
c26c80db | 26 | - cd ../.. |
70f0f8c4 AT |
27 | - sudo mkdir -p /etc/pkcs11/modules/ |
28 | - sudo cp -f regression-tests/softhsm.mod /etc/pkcs11/modules/softhsm | |
29 | - sudo cp -f regression-tests/softhsm.conf /etc/softhsm/softhsm.conf | |
30 | - sudo chmod 0755 /etc/softhsm/ | |
31 | - sudo chmod 0644 /etc/softhsm/softhsm.conf | |
32 | - sudo chmod 0777 /var/lib/softhsm | |
33 | - p11-kit -l # ensure it's ok | |
7b8f4fc1 PD |
34 | script: |
35 | - ./bootstrap | |
74caf870 | 36 | - ./configure --with-dynmodules='bind geoip gmysql gpgsql gsqlite3 mydns tinydns remote random opendbx ldap lmdb' --with-modules='' --enable-unit-tests --enable-tools --enable-remotebackend-zeromq --enable-experimental-pkcs11 |
0307e151 PD |
37 | - make -k dist |
38 | - make -k -j 4 | |
745a2e2d | 39 | - make -k install DESTDIR=/tmp/pdns-install-dir |
a420d4ac | 40 | - find /tmp/pdns-install-dir -ls |
4c5fcd4d | 41 | - travis_retry timeout 240s make -j 4 check # Workaround for remotebackend failures on travis-ci |
0307e151 | 42 | - make -k -C pdns $(grep '(EXEEXT):' pdns/Makefile | cut -f1 -d\$) |
6dfd5d03 | 43 | - cd pdns |
0307e151 | 44 | - make -k -j 4 pdns_recursor |
95d99a17 | 45 | - ./dist-recursor |
0307e151 | 46 | - make -k -C docs html/index.html manpages |
acc8c53b | 47 | - cd ../regression-tests.recursor |
6d1a3b7a PD |
48 | - cp vars.sample vars |
49 | - ./config.sh | |
50 | - ./start.sh | |
51 | - sleep 3 | |
52 | - svstat configs/* | |
53 | - ./runtests | |
54 | - test ! -s ./failed_tests | |
55 | - ./stop.sh | |
56 | - sleep 3 | |
57 | - ./clean.sh | |
1a152698 | 58 | - cd ../regression-tests.api |
7c876c30 CH |
59 | - ./runtests authoritative |
60 | - ./runtests recursor | |
6d1a3b7a | 61 | - cd ../regression-tests |
905057ba | 62 | - touch tests/verify-dnssec-zone/allow-missing |
8ded0828 KM |
63 | - touch tests/verify-dnssec-zone/skip.nsec3 # some (travis) tools in this test are unable to handle nsec3 zones |
64 | - touch tests/verify-dnssec-zone/skip.optout | |
709ca59f | 65 | - export geoipregion=oc geoipregionip=1.2.3.4 |
f3550a21 KM |
66 | - ./timestamp ./start-test-stop 5300 bind-both |
67 | - ./timestamp ./start-test-stop 5300 bind-dnssec-both | |
68 | - ./timestamp ./start-test-stop 5300 bind-dnssec-pkcs11 | |
69 | - ./timestamp ./start-test-stop 5300 bind-dnssec-nsec3-both | |
70 | - ./timestamp ./start-test-stop 5300 bind-dnssec-nsec3-optout-both | |
71 | - ./timestamp ./start-test-stop 5300 bind-dnssec-nsec3-narrow | |
afd02168 | 72 | - ./timestamp ./start-test-stop 5300 bind-hybrid-nsec3 |
709ca59f AT |
73 | - ./timestamp ./start-test-stop 5300 geoipbackend |
74 | - ./timestamp ./start-test-stop 5300 geoipbackend-nsec3-narrow | |
f3550a21 KM |
75 | - ./timestamp ./start-test-stop 5300 gmysql-nodnssec-both |
76 | - ./timestamp ./start-test-stop 5300 gmysql-both | |
77 | - ./timestamp ./start-test-stop 5300 gmysql-nsec3-both | |
78 | - ./timestamp ./start-test-stop 5300 gmysql-nsec3-optout-both | |
79 | - ./timestamp ./start-test-stop 5300 gmysql-nsec3-narrow | |
80 | - ./timestamp ./start-test-stop 5300 gpgsql-nodnssec-both | |
81 | - ./timestamp ./start-test-stop 5300 gpgsql-both | |
82 | - ./timestamp ./start-test-stop 5300 gpgsql-nsec3-both | |
83 | - ./timestamp ./start-test-stop 5300 gpgsql-nsec3-optout-both | |
84 | - ./timestamp ./start-test-stop 5300 gpgsql-nsec3-narrow | |
85 | - ./timestamp ./start-test-stop 5300 gsqlite3-nodnssec-both | |
86 | - ./timestamp ./start-test-stop 5300 gsqlite3-both | |
87 | - ./timestamp ./start-test-stop 5300 gsqlite3-nsec3-both | |
88 | - ./timestamp ./start-test-stop 5300 gsqlite3-nsec3-optout-both | |
89 | - ./timestamp ./start-test-stop 5300 gsqlite3-nsec3-narrow | |
cec11b41 | 90 | - ./timestamp ./start-test-stop 5300 lmdb-nodnssec |
f3550a21 KM |
91 | - ./timestamp ./start-test-stop 5300 mydns |
92 | - ./timestamp ./start-test-stop 5300 opendbx-sqlite3 | |
93 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-pipe # Workaround for remotebackend failures on travis-ci | |
94 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-pipe-dnssec | |
95 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-unix | |
96 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-unix-dnssec | |
97 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-http | |
98 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-http-dnssec | |
99 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-zeromq | |
100 | - travis_retry ./timestamp timeout 120s ./start-test-stop 5300 remotebackend-zeromq-dnssec | |
101 | - ./timestamp ./start-test-stop 5300 tinydns | |
102 | - THRESHOLD=90 TRACE=no ./timestamp ./recursor-test 5300 | |
27d96bf3 RA |
103 | - cd ../regression-tests.nobackend/ |
104 | - ./runtests | |
8ad5cc4d | 105 | - test ! -s ./failed_tests |
7b8f4fc1 PD |
106 | notifications: |
107 | irc: | |
108 | channels: | |
109 | - "irc.oftc.net#powerdns-dev" | |
bfc7a4a8 RA |
110 | template: |
111 | - "%{author} @ %{repository} / %{branch} - Build:#%{build_number} : %{message} - Changes: %{compare_url} - Build details: %{build_url}" | |
7b8f4fc1 PD |
112 | use_notice: true |
113 | skip_join: true |