]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add FreeBSD to GitLab CI
authorMichał Kępień <michal@isc.org>
Thu, 12 Sep 2019 12:25:57 +0000 (14:25 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 12 Sep 2019 13:00:38 +0000 (15:00 +0200)
commit097989cf59e5fd11d416d00dcfce3d66a9dc010e
treebbfc06c5fd980441be96b7bc9beddd10430a3f41
parent83ceebef814c85de7a372130c348c190a71ed448
Add FreeBSD to GitLab CI

Ensure BIND can be tested on FreeBSD in GitLab to more quickly catch
build and test errors on that operating system.  Make the relevant jobs
optional until the CI environment supporting them is deemed stable
enough for continuous use.

FreeBSD jobs are run using the Custom executor feature of GitLab Runner.
Unlike the Docker executor, the Custom executor does not support the
"image" option and thus some way of informing the runner about the OS
version to use for a given job is necessary.  Arguably the simplest way
of doing that without a lot of code duplication in .gitlab-ci.yml would
be to use a YAML template with a "variables" block specifying the
desired FreeBSD release to use, but including such a template in a job
definition would cause issues in case other variables also needed to be
set for that job (e.g. CFLAGS or EXTRA_CONFIGURE for build jobs).  Thus,
only one FreeBSD YAML template is defined instead and the Custom
executor scripts on FreeBSD runners extract the OS version to use from
the CI job name.  This allows .gitlab-ci.yml variables to be defined for
FreeBSD jobs in the same way as for Docker-based jobs.

(cherry picked from commit 51af91d0073e773259ec19b61daf9bca40ef79a9)
.gitlab-ci.yml