- run:
name: symlink checkout into home
command: rmdir ~/project && ln -s /opt/project ~/project
+ - run:
+ name: include $BASH_ENV for both interactive and non-interactive shells
+ command: echo '. $BASH_ENV' >> $HOME/.bashrc
install-coverity-tools:
description: Install the coverity tools to /usr/local
- run:
name: Install jdnssectools
command: |
- if [ ! -e /usr/bin/jdnssec-verifyzone ]; then
+ if [ ! -e $HOME/bin/jdnssec-verifyzone ]; then
apt-get install -qq -y wget
wget https://github.com/dblacka/jdnssec-tools/releases/download/0.14/jdnssec-tools-0.14.tar.gz
- tar xfz jdnssec-tools-0.14.tar.gz --strip-components=1 -C /
+ tar xfz jdnssec-tools-0.14.tar.gz -C $HOME
rm jdnssec-tools-0.14.tar.gz
fi
+ echo 'export PATH=$HOME/jdnssec-tools-0.14/bin:$PATH' >> $BASH_ENV
- run:
name: Allow missing tools in verify-dnssec-zone
command: touch regression-tests/tests/verify-dnssec-zone/allow-missing
name: Run << parameters.context >> tests
command: |
[ -e ./vars ] && . ./vars
+ export
rm -rf tests/*/skip
for t in << parameters.skip >>
do
libcap2 \
libssl1.1 \
libsystemd0 \
- libsodium18 \
- libprotobuf10
+ libsodium23 \
+ libfstrm0 \
+ libprotobuf17
install-auth-deps:
description: Install all libraries needed to run the auth
liblmdb0 \
libpq5 \
libssl1.1 \
- libsodium18 \
+ libsodium23 \
libsystemd0 \
default-libmysqlclient-dev \
unixodbc
git \
libboost-all-dev \
libsystemd0 \
- libyaml-cpp0.5v5 \
+ libyaml-cpp0.6 \
virtualenv
install-auth-dev-deps:
default: "debian"
release:
type: string
- default: "stretch"
+ default: "buster"
steps:
- run:
name: "Install dependencies"
build-auth:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
test-auth-regress-odbc-sqlite3:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- auth-regress-setup
- run:
test-auth-regress-odbc-mssql:
docker:
- - image: debian:stretch
+ - image: debian:buster
- image: mcr.microsoft.com/mssql/server:2017-GA-ubuntu
environment:
- ACCEPT_EULA: Y
test-auth-regress-gsqlite3:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- auth-regress-setup
- run:
test-auth-regress-bind:
docker:
- - image: debian:stretch
+ - image: debian:buster
- image: circleci/mysql:5 # for the hybrid test
steps:
- auth-regress-setup
[client]
protocol=TCP
__EOF__
+ - run:
+ name: Set up mysql client lib to force TCP
+ command: echo 'export GMYSQLHOST=127.0.0.1 MYDNSHOST=127.0.0.1' > ./vars
+ workdir: ~/project/regression-tests
- auth-regress:
context: bind-hybrid-nsec3
test-auth-regress-mydns:
docker:
- - image: debian:stretch
+ - image: debian:buster
- image: circleci/mysql:5
steps:
- auth-regress-setup
[client]
protocol=TCP
__EOF__
+ - run:
+ name: Set up mysql client lib to force TCP
+ command: echo 'export GMYSQLHOST=127.0.0.1 MYDNSHOST=127.0.0.1' > ./vars
+ workdir: ~/project/regression-tests
- auth-regress:
context: mydns
doroot: false
test-auth-regress-gmysql:
docker:
- - image: debian:stretch
+ - image: debian:buster
- image: circleci/mysql:5
steps:
- auth-regress-setup
- run:
command: |
cat >> ~/.my.cnf \<<- __EOF__
- [client]
- protocol=TCP
+ [client]
+ protocol=TCP
+ default-character-set=latin1
__EOF__
+ - run:
+ name: Set up mysql client lib to force TCP
+ command: echo 'export GMYSQLHOST=127.0.0.1 MYDNSHOST=127.0.0.1 export GMYSQL2HOST=127.0.0.1 MYDNS2HOST=127.0.0.1 ' > ./vars
+ workdir: ~/project/regression-tests
- auth-regress:
context: gmysql-nodnssec-both
- auth-regress:
test-auth-regress-gpgsql:
docker:
- - image: debian:stretch
+ - image: debian:buster
- image: circleci/postgres:9
environment:
POSTGRES_USER: root
test-auth-regress-ldap:
docker:
- - image: debian:stretch
+ - image: debian:buster
environment:
LDAPHOST: ldap://ldapserver/
- image: powerdns/ldap-regress:1.2.4-0 # OpenLDAP 2.4.47
test-auth-regress-tinydns:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- auth-regress-setup
- auth-regress:
test-auth-regress-lmdb:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- auth-regress-setup
- run: apt-get install -y -qq jq curl
test-auth-algorithms:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- auth-regress-setup
- run:
test-auth-api:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- auth-regress-setup
- run: apt-get -y -qq install virtualenv sqlite3
build-recursor:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- restore-cache-ccache:
product: recursor
libboost-all-dev \
libcap-dev \
libluajit-5.1-dev \
+ libfstrm-dev \
libprotobuf-dev \
libsodium-dev \
libssl-dev \
test-recursor-regression:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- add-auth-repo
- run: apt-get --no-install-recommends install -qq -y pdns-server pdns-backend-bind pdns-tools daemontools authbind jq libfaketime lua-posix moreutils bc virtualenv protobuf-compiler
test-recursor-bulk:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- add-auth-repo
- run: apt-get --no-install-recommends install -qq -y pdns-tools moreutils time
test-recursor-api:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- add-auth-repo
- run: apt-get --no-install-recommends install -qq -y virtualenv pdns-tools
build-auth-docs:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
- install-doc-deps
deploy-auth-docs:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
- install-doc-deps
build-recursor-docs:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
- install-doc-deps
deploy-recursor-docs:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
- install-doc-deps
build-dnsdist-docs:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
- install-doc-deps
deploy-dnsdist-docs:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- get-workspace
- install-doc-deps
coverity-auth:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- install-auth-dev-deps
- install-coverity-tools
coverity-dnsdist:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- run:
name: Install dependencies
coverity-recursor:
docker:
- - image: debian:stretch
+ - image: debian:buster
steps:
- run:
name: Install dependencies
libboost-all-dev \
libcap-dev \
libluajit-5.1-dev \
+ libfstrm-dev \
libprotobuf-dev \
libsodium-dev \
libssl-dev \
test-ixfrdist-regression:
docker:
- - image: debian:stretch
+ - image: debian:buster
environment:
UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1'
steps: