summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/alpinelinux.yml
blob: d867f2f748ef255aafafcbe00c089383e3caac9f (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
.alpinelinux-dependencies:
  variables:
    DISTRO: cryptsetup-alpine-edge
  extends:
    - .fail_if_coredump_generated
  before_script:
    - >
      sudo apk add
      lvm2-dev openssl-dev popt-dev util-linux-dev json-c-dev
      argon2-dev device-mapper which sharutils gettext gettext-dev automake
      autoconf libtool build-base keyutils tar jq expect git asciidoctor
    - ./autogen.sh
    - ./configure --prefix=/usr --libdir=/lib --sbindir=/sbin --disable-static --enable-libargon2 --with-crypto_backend=openssl --disable-external-tokens --disable-ssh-token --enable-asciidoc

test-main-commit-job-alpinelinux:
  extends:
    - .alpinelinux-dependencies
  tags:
    - libvirt
    - cryptsetup-alpine-edge
  stage: test
  interruptible: true
  variables:
    RUN_SSH_PLUGIN_TEST: "0"
  rules:
    - if: $RUN_SYSTEMD_PLUGIN_TEST != null
      when: never
    - if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
      when: never
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /v2\..\.x$/
  script:
    - make -j
    - make -j -C tests check-programs
    - sudo -E make check

test-mergerq-job-alpinelinux:
  extends:
    - .alpinelinux-dependencies
  tags:
    - libvirt
    - cryptsetup-alpine-edge
  stage: test
  interruptible: true
  variables:
    RUN_SSH_PLUGIN_TEST: "0"
  rules:
    - if: $RUN_SYSTEMD_PLUGIN_TEST != null
      when: never
    - if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
      when: never
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
  script:
    - make -j
    - make -j -C tests check-programs
    - sudo -E make check