]> granicus.if.org Git - pdns/commitdiff
build and test godbc backend in travis
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 11 Nov 2016 19:29:16 +0000 (20:29 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 14 Nov 2016 17:23:48 +0000 (18:23 +0100)
build-scripts/travis.sh

index 84c704439e1ec36b1d23b7a4947e4d8a9d458ab1..bf0e27b432a6237b2578f1eb597c416eae5d1c99 100755 (executable)
@@ -224,6 +224,10 @@ install_auth() {
   run "sudo apt-get -qq --no-install-recommends install \
     libzmq3-dev"
 
+  # godbc-backend
+  run "sudo apt-get -qq --no-install-recommends install \
+    libsqliteodbc"
+
   # authoritative test requirements / setup
   run "sudo apt-get -qq --no-install-recommends install \
     bind9utils \
@@ -271,7 +275,9 @@ install_auth() {
     mysql-server"
 
   # godbc-backend test setup
-  run echo\ -e\ "[pdns-sqlite3-1]\nDriver = SQLite3\nDatabase = ${PWD}/regression-tests/pdns.sqlite3\n\n[pdns-sqlite3-2]\nDriver = SQLite3\nDatabase = ${PWD}/regression-tests/pdns.sqlite32\n"\ >\ ${HOME}/.odbc.ini
+  run 'echo -e "[pdns-sqlite3-1]\nDriver = SQLite3\nDatabase = ${PWD}/regression-tests/pdns.sqlite3\n\n[pdns-sqlite3-2]\nDriver = SQLite3\nDatabase = ${PWD}/regression-tests/pdns.sqlite32\n" > ${HOME}/.odbc.ini'
+  run 'echo ${HOME}/.odbc.ini'
+  run 'cat ${HOME}/.odbc.ini'
 
   # ldap-backend test setup
   run "sudo apt-get -qq --no-install-recommends install \
@@ -355,7 +361,7 @@ build_auth() {
   run "./bootstrap"
   # Build without --enable-botan1.10 option, Botan/SoftHSM conflict #2496
   run "CFLAGS='-O1' CXXFLAGS='-O1' ./configure \
-    --with-dynmodules='bind gmysql geoip gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote tinydns' \
+    --with-dynmodules='bind gmysql geoip gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote tinydns godbc' \
     --with-modules='' \
     --with-sqlite3 \
     --enable-libsodium \
@@ -454,7 +460,7 @@ test_auth() {
   run "./timestamp ./start-test-stop 5300 gmysql-nsec3-narrow"
 
   run "export GODBC_SQLITE3_DSN=pdns-sqlite3-1"
-  run "./timestamp ./start-test-stop 5300 godbc_sqlite3-nsec3"
+  run "./timestamp ./start-test-stop 5300 godbc_sqlite3-nsec3"
 
   run "./timestamp ./start-test-stop 5300 gpgsql-nodnssec-both"
   run "./timestamp ./start-test-stop 5300 gpgsql-both"