summaryrefslogtreecommitdiffstats
path: root/debian/salsa-ci.yml
blob: bb189bba8389771fe2d0f029f7f9d89defac8169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
include:
  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml

variables:
  RELEASE: 'bookworm'
  # Skip all DEP-8 tests except 'cryptroot-lvm': each 'cryptroot-*' test
  # takes 20-30min on Salsa CI runners as they don't support KVM acceleration
  # cf. https://salsa.debian.org/salsa-ci-team/pipeline/-/issues/266 ,
  # and other tests are skipped anyway since they require machine-level
  # isolation which the runners currently don't provide.
  # Running 'cryptroot-lvm' and 'cryptroot-legacy' only is significantly
  # better than disabling the autopkgtest job altogether.
  SALSA_CI_AUTOPKGTEST_ARGS: '--test-name=cryptroot-lvm --test-name=cryptroot-legacy'

# Run reprotest job under 'nocheck' build profile.  The job runs with
# root privileges, which trigger extra tests within the upstream test
# suite.  Some of these extra tests want to interact with the kernel,
# load modules, and create/remove loop devices, which is beyond the
# scope of the reprotest job.
reprotest:
  extends: .test-reprotest
  variables:
    DEB_BUILD_OPTIONS: nocheck

# Add a deploy stage for pages
stages:
  - provisioning
  - build
  - publish
  - test
  # would be better if we could extend the list rather than override it
  - deploy

pages:
  image: debian:11
  script:
    - apt-get update
    - apt-get -y install pandoc
    - mkdir public
    # install CSS file
    - install -m0644 debian/doc/pandoc/pandoc.css public/pandoc.css
    # 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} -pNo public/encrypted-boot.html
          debian/doc/pandoc/encrypted-boot.md
  stage: deploy
  artifacts:
    paths:
      - public
  only:
    # only run on debian/latest branch
    refs:
      - debian/latest
    # 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+smart -t html'