-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
39 lines (35 loc) · 1.22 KB
/
.gitlab-ci.yml
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
stages:
- b2install
- test
default:
tags: [extagent48]
interruptible: true # All the jobs can be interrupted by newer pipelines
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == 'main'
b2install:
stage: b2install
image: $IMAGE
parallel:
matrix:
# All the images we want to use
- IMAGE: ['rockylinux:8', 'rockylinux:9', 'almalinux:9', 'ubuntu:20.04', 'ubuntu:22.04', 'ubuntu:24.04', 'debian:11', 'debian:12']
script:
- echo "Running job \"${CI_JOB_NAME}\" with the image \"${CI_JOB_IMAGE}\"..."
- tests/run.sh --only-b2install-prepare
- echo "Successfully completed job \"${CI_JOB_NAME}\" with the image \"${CI_JOB_IMAGE}\""
test:
stage: test
needs: [b2install]
# Run this job using multiple images
image: $IMAGE
parallel:
matrix:
# All the images we want to use
# rockylinux:8 is temporary excluded
- IMAGE: ['rockylinux:9', 'almalinux:9', 'ubuntu:20.04', 'ubuntu:22.04']
script:
- echo "Running job \"${CI_JOB_NAME}\" with the image \"${CI_JOB_IMAGE}\"..."
- tests/run.sh
- echo "Successfully completed job \"${CI_JOB_NAME}\" with the image \"${CI_JOB_IMAGE}\""