From: Pieter Lexis Date: Mon, 8 Apr 2019 09:02:40 +0000 (+0200) Subject: Build the recursor in circleci X-Git-Tag: rec-4.2.0-rc1~26^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fff14ef3ee5e7ef056f2a0376840ab7d37c3600;p=thirdparty%2Fpdns.git Build the recursor in circleci --- diff --git a/.circleci/config.yml b/.circleci/config.yml index 04cd4979b6..0aeb8845db 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/build-scripts/circleci.sh b/build-scripts/circleci.sh index 63f6e8b693..8551eb76eb 100755 --- a/build-scripts/circleci.sh +++ b/build-scripts/circleci.sh @@ -74,4 +74,4 @@ __EOF__ echo unknown command "$1" exit 1 ;; -esac \ No newline at end of file +esac