mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
CI: add Alpine Linux runner
This commit is contained in:
committed by
Milan Broz
parent
dd3fe9f5fd
commit
828ddad7c2
@@ -17,3 +17,4 @@ include:
|
|||||||
- local: .gitlab/ci/gitlab-shared-docker.yml
|
- local: .gitlab/ci/gitlab-shared-docker.yml
|
||||||
- local: .gitlab/ci/compilation-gcc.gitlab-ci.yml
|
- local: .gitlab/ci/compilation-gcc.gitlab-ci.yml
|
||||||
- local: .gitlab/ci/compilation-clang.gitlab-ci.yml
|
- local: .gitlab/ci/compilation-clang.gitlab-ci.yml
|
||||||
|
- local: .gitlab/ci/alpinelinux.yml
|
||||||
|
|||||||
53
.gitlab/ci/alpinelinux.yml
Normal file
53
.gitlab/ci/alpinelinux.yml
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
.alpinelinux-dependencies:
|
||||||
|
after_script:
|
||||||
|
- sudo dmesg > /mnt/artifacts/dmesg.log
|
||||||
|
- sudo cp /var/log/messages /mnt/artifacts/
|
||||||
|
- '[ "$(ls -A /var/coredumps)" ] && exit 1 || true'
|
||||||
|
before_script:
|
||||||
|
- >
|
||||||
|
sudo apk add
|
||||||
|
lvm2-dev openssl1.1-compat-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
|
||||||
|
- ./autogen.sh
|
||||||
|
- ./configure --prefix=/usr --libdir=/lib --sbindir=/sbin --disable-static --enable-libargon2 --with-crypto_backend=openssl --disable-external-tokens --disable-ssh-token
|
||||||
|
|
||||||
|
test-main-commit-job-alpinelinux:
|
||||||
|
extends:
|
||||||
|
- .alpinelinux-dependencies
|
||||||
|
tags:
|
||||||
|
- libvirt
|
||||||
|
- alpinelinux
|
||||||
|
stage: test
|
||||||
|
interruptible: true
|
||||||
|
variables:
|
||||||
|
RUN_SSH_PLUGIN_TEST: "0"
|
||||||
|
rules:
|
||||||
|
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
|
||||||
|
when: never
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /v2\..\.x$/
|
||||||
|
rules:
|
||||||
|
- 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
|
||||||
|
- alpinelinux
|
||||||
|
stage: test
|
||||||
|
interruptible: true
|
||||||
|
variables:
|
||||||
|
RUN_SSH_PLUGIN_TEST: "0"
|
||||||
|
rules:
|
||||||
|
- 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
|
||||||
Reference in New Issue
Block a user