]> granicus.if.org Git - pdns/commitdiff
Build the recursor in circleci
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 8 Apr 2019 09:02:40 +0000 (11:02 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 6 May 2019 09:46:50 +0000 (11:46 +0200)
.circleci/config.yml
build-scripts/circleci.sh

index 04cd4979b645f2b64080fcba7d63a84cd1545f90..0aeb8845dbc68e84aa5eb2fd05e7e26e697bdb59 100644 (file)
@@ -79,8 +79,66 @@ jobs:
           context: godbc_mssql-nsec3-narrow
           skip: 8bit-txt-unescaped
 
+  build-recursor:
+    docker:
+      - image: debian:stretch
+    steps:
+      - run:
+          name: Install dependencies
+          command: |
+            apt-get update && apt-get -qq --no-install-recommends install \
+            autoconf \
+            automake \
+            ca-certificates \
+            curl \
+            bison \
+            flex \
+            g++ \
+            git \
+            libboost-all-dev \
+            libcap-dev \
+            libluajit-5.1-dev \
+            libprotobuf-dev \
+            libsodium-dev \
+            libssl-dev \
+            libsystemd-dev \
+            libtool \
+            make \
+            pkg-config \
+            protobuf-compiler \
+            ragel \
+            virtualenv
+      - checkout
+      - run:
+          name: autoconf
+          command: autoreconf -vfi
+          working_directory: ~/project/pdns/recursordist
+      - run:
+          name: configure
+          command: |
+            CFLAGS="-O1 -Werror=vla" \
+            CXXFLAGS="-O1 -Werror=vla" \
+            ./configure \
+            --enable-unit-tests \
+            --prefix=/opt/pdns-recursor \
+            --with-libsodium \
+            --with-lua=luajit \
+            --with-libcap \
+            --with-protobuf=yes \
+            --without-net-snmp
+          working_directory: ~/project/pdns/recursordist
+      - run:
+          name: build
+          command: make -j3 -k
+          working_directory: ~/project/pdns/recursordist
+      - run:
+          name: make check
+          command: make check
+          working_directory: ~/project/pdns/recursordist
+
 workflows:
   version: 2
-  auth:
+  build-and-test-all:
     jobs:
       - build-auth
+      - build-recursor
index 63f6e8b69303bf38712136ad3ff1b0533300242d..8551eb76eb28d5e4553d308d7efe25e8aa4dee66 100755 (executable)
@@ -74,4 +74,4 @@ __EOF__
         echo unknown command "$1"
         exit 1
         ;;
-esac
\ No newline at end of file
+esac