Gitlab Continuous Integration with Docker images
acme-dns-tiny uses Gitlab Continuous Integration (Gitlab CI) to check that new code still work and to automate some tests to verify quality.
Gitlab CI with Docker
Gitlab CI can work with Docker to create a test environnement without affecting real machine.
acme-dns-tiny has created its own image from scratch with the following commands (according to Docker documentation) :
# Host machine debootstrap jessie adt-jessie chroot adt-jessie # Inside Jessie image apt update apt install -y git python3-pip python3-dnspython python3-coverage # So coverage command can be run from debian package as if it was run from pip update-alternatives --install /usr/bin/coverage coverage /usr/bin/python3-coverage 1 exit # Host machine tar -C adt-jessie -c . | docker import - adt-jessie
Install of test requirements which aren't included in Debian will be done with pip3 when the gitlab-runner will run the scripts.