summaryrefslogtreecommitdiffstats
path: root/debian/gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:31:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:31:20 +0000
commit82ff52e0800702dee9402f8efe13dbc02e5883d2 (patch)
tree2f1704ba1a30bffc1f66bf5fb51c48431c24f6fa /debian/gitlab-ci.yml
parentAdding upstream version 2:2.1.0. (diff)
downloadcryptsetup-0590d665788cd26a7a6ab5d178e6a7728ab49a65.tar.xz
cryptsetup-0590d665788cd26a7a6ab5d178e6a7728ab49a65.zip
Adding debian version 2:2.1.0-5+deb10u2.debian/2%2.1.0-5+deb10u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/gitlab-ci.yml')
-rw-r--r--debian/gitlab-ci.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml
new file mode 100644
index 0000000..e96f321
--- /dev/null
+++ b/debian/gitlab-ci.yml
@@ -0,0 +1,53 @@
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+variables:
+ RELEASE: 'unstable'
+
+# Disable the cryptsetup testsuite by setting DEB_BUILD_OPTIONS 'nocheck' for
+# the reprotest job for now. It fails because reprotest builds as root, which
+# triggers extra tests. Some of them require modprobe, which is missing on the
+# Salsa runners. See https://salsa.debian.org/salsa/support/issues/149 for
+# more context
+reprotest:
+ extends: .test-reprotest
+ variables:
+ REPROTEST_EXTRA_ARGS: '--no-diffoscope'
+ DEB_BUILD_OPTIONS: nocheck
+
+# Add a deploy stage for pages
+stages:
+ - build
+ - test
+ - deploy
+
+pages:
+ image: debian:9
+ script:
+ - apt update
+ - apt -y install pandoc
+ - mkdir public
+ # install CSS file
+ - cp debian/doc/pandoc/pandoc.css public/
+ # install index.html
+ - ${PANDOC} -T "Debian Cryptsetup docs" -o public/index.html
+ debian/doc/pandoc/index.md
+ # install README.*.html files
+ - for readme in Debian debug gnupg gnupg-sc initramfs keyctl opensc; do
+ ${PANDOC} --toc -T "Debian Cryptsetup docs"
+ -o public/README.$readme.html debian/README.$readme; done
+ - ${PANDOC} -o public/encrypted-boot.html debian/doc/pandoc/encrypted-boot.md
+ stage: deploy
+ artifacts:
+ paths:
+ - public
+ only:
+ # only run on master branch
+ refs:
+ - master
+ # only run when commit is tagged (to install docs on package releases only)
+ #variables:
+ # - $CI_COMMIT_TAG
+ variables:
+ PANDOC: 'pandoc -s -c pandoc.css -f markdown -t html'