summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: fd9b193cc09ee5acbc0d8fce3fbdd283453c0465 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
image: debian:sid-slim
variables:
  DEFAULT_SUITE:
    description: Debian suite to use for architecture tests
    value: sid

shellcheck:
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install shellcheck
    - shellcheck -P tests bin/* share/*.sh tests/*.sh

codespell:
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install codespell
    - codespell bin/* share/*.sh tests/*.sh README.md

release_test:
  parallel:
    matrix:
      - RELEASE:
          - sid
          - trixie
          - bookworm
          - bullseye
          - buster
          - stretch
          - jessie
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install curl e2fsprogs expect gpgv mmdebstrap openssh-client qemu-kvm dpkg-dev
    - PATH=$(pwd)/bin:$PATH ./tests/create-and-run.sh $(dpkg --print-architecture) "$RELEASE"

release_test_efi:
  parallel:
    matrix:
      - RELEASE:
          - sid
          - trixie
          - bookworm
        UKIFY:
          - systemd-ukify
          - binutils-multiarch
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install dosfstools dpkg-dev e2fsprogs expect fdisk mmdebstrap mount mtools openssh-client ovmf qemu-kvm systemd $UKIFY
    - PATH=$(pwd)/bin:$PATH ./tests/efi-create-and-run.sh $(dpkg --print-architecture) "$RELEASE"

debci_test:
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install e2fsprogs expect mmdebstrap openssh-client qemu-kvm dpkg-dev
    - PATH=$(pwd)/bin:$PATH ./tests/create-and-run.sh $(dpkg --print-architecture) ""

arch_test:
  parallel:
    matrix:
      - ARCHITECTURE:
          - arm64
          - armel
          - armhf
          - i386
          - mips64el
          - ppc64el
          - riscv64
          - s390x
  script:
    - test -e /proc/sys/fs/binfmt_misc/status || mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install curl e2fsprogs expect mmdebstrap openssh-client qemu-system arch-test qemu-user-static file systemd dpkg-dev debian-ports-archive-keyring
    - /lib/systemd/systemd-binfmt
    - PATH=$(pwd)/bin:$PATH ./tests/create-and-run.sh "$ARCHITECTURE" "$DEFAULT_SUITE"

arch_test_efi:
  parallel:
    matrix:
      - ARCHITECTURE:
          - arm64
          - armhf
          - riscv64
  script:
    - test -e /proc/sys/fs/binfmt_misc/status || mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install dosfstools dpkg-dev e2fsprogs expect fdisk mmdebstrap mount mtools openssh-client ovmf qemu-efi-aarch64 qemu-efi-arm qemu-efi-riscv64 qemu-system arch-test qemu-user-static systemd systemd-ukify
    - /lib/systemd/systemd-binfmt
    - PATH=$(pwd)/bin:$PATH ./tests/efi-create-and-run.sh "$ARCHITECTURE" "$DEFAULT_SUITE"

autopkgtest-qemu-efi:
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install autopkgtest dosfstools e2fsprogs fdisk mmdebstrap mount mtools ovmf qemu-utils qemu-kvm systemd systemd-ukify
    - PATH=$(pwd)/bin:$PATH ./tests/autopkgtest-qemu-efi.sh "$ARCHITECTURE" "$DEFAULT_SUITE"