summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 24cbab1dcad0fec36659fd906e98d42ba93cf75e (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
image: debian:sid-slim

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 mmdebstrap openssh-client qemu-kvm dpkg-dev
    - PATH=$(pwd)/bin:$PATH ./tests/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 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 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" sid