-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
49 lines (42 loc) · 1.27 KB
/
.gitlab-ci.yml
File metadata and controls
49 lines (42 loc) · 1.27 KB
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
# SPDX-FileCopyrightText: Red Hat Inc
# SPDX-License-Identifier: LGPL-2.1-or-later
variables:
GIT_SUBMODULE_STRATEGY: recursive
workflow:
rules:
# To enable this workflow, add a variable in Settings > CI/CD > Variables.
- if: $CI_ENABLED != "yes"
when: never
# See https://docs.gitlab.com/ee/ci/jobs/job_control.html#common-if-clauses-for-rules
# https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "web"
.test:
script:
- meson setup build -Dwerror=true
- meson compile -C build
- meson test -C build -v
- ./build-rpms
- mkdir rpms
- mv build/rpm/RPMS/*/*.rpm rpms
- dnf install -y rpms/*.rpm
artifacts:
name: $CI_JOB_NAME
paths:
- rpms
fedora-40:
extends: .test
image: quay.io/nirsof/blkhash-test:fedora-40
fedora-41:
extends: .test
image: quay.io/nirsof/blkhash-test:fedora-41
fedora-42:
extends: .test
image: quay.io/nirsof/blkhash-test:fedora-42
centos-9:
extends: .test
image: quay.io/nirsof/blkhash-test:centos-9