]> granicus.if.org Git - pdns/commitdiff
test ixfrdist in CircleCI
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 9 Jul 2019 14:19:53 +0000 (16:19 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 10 Jul 2019 08:00:05 +0000 (10:00 +0200)
.circleci/config.yml

index ac24a12654d4b66254cd155ccbd18fb92be1f2fe..a1fb92dba68db7fda16fba154372c3814b0c3e44 100644 (file)
@@ -194,6 +194,18 @@ commands:
               protobuf-compiler \
               virtualenv
 
+  install-ixfrdist-deps:
+    description: "Install all libraries needed for testing ixfrdist"
+    steps:
+      - run: apt-get update
+      - run:
+          command: |
+            apt-get install -qq -y \
+              libboost-all-dev \
+              libsystemd0 \
+              libyaml-cpp0.5v5 \
+              virtualenv
+
   install-auth-dev-deps:
     description: Install all packages needed to build the auth
     steps:
@@ -220,6 +232,7 @@ commands:
               libsqlite3-dev \
               libssl-dev \
               libtool \
+              libyaml-cpp-dev \
               make \
               pkg-config \
               ragel \
@@ -462,7 +475,8 @@ jobs:
               --enable-tools \
               --with-lmdb=/usr \
               --with-libsodium \
-              --prefix=/opt/pdns-auth
+              --prefix=/opt/pdns-auth \
+              --enable-ixfrdist
       - run:
           name: build
           command: make -j3 -k
@@ -1235,6 +1249,23 @@ jobs:
             DNSDISTBIN="/opt/dnsdist/bin/dnsdist" \
             ./runtests
 
+  test-ixfrdist-regression:
+    docker:
+      - image: debian:stretch
+        environment:
+          UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1'
+    steps:
+      - install-ixfrdist-deps
+      - checkout-shallow
+      - attach_workspace:
+          at: /opt
+      - run:
+          name: Run ixfrdist tests
+          workdir: ~/project/regression-tests.ixfrdist
+          command: |
+            IXFRDISTBIN="/opt/pdns-auth/bin/ixfrdist" \
+            ./runtests
+
 workflows:
   version: 2
   coverity:
@@ -1305,6 +1336,9 @@ workflows:
       - test-dnsdist-regression:
           requires:
             - build-dnsdist
+      - test-ixfrdist-regression:
+          requires:
+            - build-auth
 
   build-docs:
     jobs: