summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: e97f0bd23c3028f1bf6186f095edc4a65f273538 (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
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
          - bookworm
          - bullseye
          - buster
          - stretch
          - jessie
  script:
    - apt-get update
    - apt-get dist-upgrade --yes
    - apt-get --no-install-recommends --yes install e2fsprogs genext2fs mmdebstrap openssh-client qemu-kvm
    - PATH=$(pwd)/bin:$PATH ./tests/create-and-run.sh $(dpkg --print-architecture) "$RELEASE"

arch_test:
  parallel:
    matrix:
      - ARCHITECTURE:
          - arm64
          - armel
          - armhf
          - i386
          - mips64el
          - mipsel
          - ppc64el
          - 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 e2fsprogs genext2fs mmdebstrap openssh-client qemu-system binfmt-support arch-test qemu-user-static
    - PATH=$(pwd)/bin:$PATH ./tests/create-and-run.sh "$ARCHITECTURE" sid