]>
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=+ |
6d1a3b7a | 7 | - sudo /sbin/ip addr add 10.0.3.0/24 dev lo |
a7db8aa6 | 8 | - sudo rm /etc/apt/sources.list.d/travis_ci_zeromq3-source.list |
0c5c96b1 | 9 | - sudo apt-get update |
70f0f8c4 | 10 | - 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 libzmq1 libzmq-dev pkg-config daemontools authbind liblua5.1-posix1 libopendbx1-dev libopendbx1-sqlite3 python-virtualenv libldap2-dev softhsm libp11-kit-dev p11-kit |
6a85d81e MZ |
11 | - sudo sh -c 'sed s/precise/trusty/g /etc/apt/sources.list > /etc/apt/sources.list.d/trusty.list' |
12 | - sudo apt-get update | |
13 | - sudo apt-get install liblmdb0 liblmdb-dev lmdb-utils | |
b210dd81 | 14 | - sudo update-alternatives --set ruby /usr/bin/ruby1.9.1 |
6d1a3b7a PD |
15 | - sudo touch /etc/authbind/byport/53 |
16 | - sudo chmod 755 /etc/authbind/byport/53 | |
bf342f8b | 17 | - travis_retry gem install bundler --no-rdoc --no-ri |
be80e5f9 KM |
18 | - cd regression-tests |
19 | - wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip | |
20 | - unzip top-1m.csv.zip | |
21 | - cd .. | |
c26c80db | 22 | - cd modules/remotebackend |
bf342f8b | 23 | - travis_retry ruby -S bundle install |
c26c80db | 24 | - cd ../.. |
70f0f8c4 AT |
25 | - sudo mkdir -p /etc/pkcs11/modules/ |
26 | - sudo cp -f regression-tests/softhsm.mod /etc/pkcs11/modules/softhsm | |
27 | - sudo cp -f regression-tests/softhsm.conf /etc/softhsm/softhsm.conf | |
28 | - sudo chmod 0755 /etc/softhsm/ | |
29 | - sudo chmod 0644 /etc/softhsm/softhsm.conf | |
30 | - sudo chmod 0777 /var/lib/softhsm | |
31 | - p11-kit -l # ensure it's ok | |
7b8f4fc1 PD |
32 | script: |
33 | - ./bootstrap | |
70f0f8c4 | 34 | - ./configure --with-modules='bind gmysql gpgsql gsqlite3 mydns tinydns remote random opendbx ldap lmdb' --enable-unit-tests --enable-remotebackend-http --enable-tools --enable-remotebackend-zeromq --enable-experimental-pkcs11 |
6c65863e | 35 | - make dist |
7b8f4fc1 | 36 | - make -j 4 |
4c5fcd4d | 37 | - travis_retry timeout 240s make -j 4 check # Workaround for remotebackend failures on travis-ci |
72fa084e | 38 | - make -C pdns $(grep '(EXEEXT):' pdns/Makefile | cut -f1 -d\$) |
6dfd5d03 | 39 | - cd pdns |
be80e5f9 | 40 | - make -j 4 pdns_recursor |
95d99a17 | 41 | - ./dist-recursor |
acc8c53b CH |
42 | - make -C docs html/index.html manpages |
43 | - cd ../regression-tests.recursor | |
6d1a3b7a PD |
44 | - cp vars.sample vars |
45 | - ./config.sh | |
46 | - ./start.sh | |
47 | - sleep 3 | |
48 | - svstat configs/* | |
49 | - ./runtests | |
50 | - test ! -s ./failed_tests | |
51 | - ./stop.sh | |
52 | - sleep 3 | |
53 | - ./clean.sh | |
1a152698 | 54 | - cd ../regression-tests.api |
7c876c30 CH |
55 | - ./runtests authoritative |
56 | - ./runtests recursor | |
6d1a3b7a | 57 | - cd ../regression-tests |
905057ba | 58 | - touch tests/verify-dnssec-zone/allow-missing |
8ded0828 KM |
59 | - touch tests/verify-dnssec-zone/skip.nsec3 # some (travis) tools in this test are unable to handle nsec3 zones |
60 | - touch tests/verify-dnssec-zone/skip.optout | |
e5da48f4 KM |
61 | - ./start-test-stop 5300 bind-both |
62 | - ./start-test-stop 5300 bind-dnssec-both | |
70f0f8c4 | 63 | - ./start-test-stop 5300 bind-dnssec-pkcs11 |
e5da48f4 KM |
64 | - ./start-test-stop 5300 bind-dnssec-nsec3-both |
65 | - ./start-test-stop 5300 bind-dnssec-nsec3-optout-both | |
66 | - ./start-test-stop 5300 bind-dnssec-nsec3-narrow | |
67 | - ./start-test-stop 5300 gmysql-nodnssec-both | |
68 | - ./start-test-stop 5300 gmysql-both | |
69 | - ./start-test-stop 5300 gmysql-nsec3-both | |
70 | - ./start-test-stop 5300 gmysql-nsec3-optout-both | |
6d751b6e | 71 | - ./start-test-stop 5300 gmysql-nsec3-narrow |
0b3be58f KM |
72 | - ./start-test-stop 5300 gpgsql-nodnssec-both |
73 | - ./start-test-stop 5300 gpgsql-both | |
74 | - ./start-test-stop 5300 gpgsql-nsec3-both | |
75 | - ./start-test-stop 5300 gpgsql-nsec3-optout-both | |
76 | - ./start-test-stop 5300 gpgsql-nsec3-narrow | |
77 | - ./start-test-stop 5300 gsqlite3-nodnssec-both | |
78 | - ./start-test-stop 5300 gsqlite3-both | |
79 | - ./start-test-stop 5300 gsqlite3-nsec3-both | |
80 | - ./start-test-stop 5300 gsqlite3-nsec3-optout-both | |
81 | - ./start-test-stop 5300 gsqlite3-nsec3-narrow | |
82 | - ./start-test-stop 5300 mydns | |
83 | - ./start-test-stop 5300 opendbx-sqlite3 | |
d7d43982 KM |
84 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-pipe # Workaround for remotebackend failures on travis-ci |
85 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-pipe-dnssec | |
86 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-unix | |
87 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-unix-dnssec | |
3c0b1320 AT |
88 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-http |
89 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-http-dnssec | |
d7d43982 KM |
90 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-zeromq |
91 | - travis_retry timeout 120s ./start-test-stop 5300 remotebackend-zeromq-dnssec | |
ed17d501 | 92 | - ./start-test-stop 5300 tinydns |
be80e5f9 | 93 | - THRESHOLD=90 TRACE=no ./recursor-test 5300 |
27d96bf3 RA |
94 | - cd ../regression-tests.nobackend/ |
95 | - ./runtests | |
8ad5cc4d | 96 | - test ! -s ./failed_tests |
9492f34d | 97 | - cat /tmp/remotebackend.txt.* | sort |
7b8f4fc1 PD |
98 | notifications: |
99 | irc: | |
100 | channels: | |
101 | - "irc.oftc.net#powerdns-dev" | |
bfc7a4a8 RA |
102 | template: |
103 | - "%{author} @ %{repository} / %{branch} - Build:#%{build_number} : %{message} - Changes: %{compare_url} - Build details: %{build_url}" | |
7b8f4fc1 PD |
104 | use_notice: true |
105 | skip_join: true |