-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
79 lines (72 loc) · 1.91 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
include:
- remote: 'https://gitlab.gnome.org/GNOME/citemplates/raw/HEAD/flatpak/flatpak_ci_initiative.yml'
- remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/34f4ade99434043f88e164933f570301fd18b125/templates/fedora.yml'
stages:
- prep
- build
variables:
FDO_UPSTREAM_REPO: GNOME/perl-glib
default:
# Cancel jobs if newer commits are pushed to the branch
interruptible: true
# Auto-retry jobs in case of infra failures
retry:
max: 1
when:
- 'runner_system_failure'
- 'stuck_or_timeout_failure'
- 'scheduler_failure'
- 'api_failure'
workflow:
rules:
# Allow to switch from branch pipelines to MR pipelines seamlessly
# https://docs.gitlab.com/ee/ci/jobs/job_control.html#avoid-duplicate-pipelines
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
# Don't trigger a branch pipeline if there is an open MR
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: '$CI_COMMIT_BRANCH'
- if: '$CI_COMMIT_TAG'
.perl.fedora:37:
variables:
FDO_DISTRIBUTION_VERSION: '37'
FDO_DISTRIBUTION_TAG: '2023-03-12.1'
FDO_DISTRIBUTION_PACKAGES:
coreutils
findutils
gcc
make
perl-ExtUtils-Depends
perl-ExtUtils-MakeMaker
perl-ExtUtils-PkgConfig
perl-Test-ConsistentVersion
perl-Test-Pod-Content
perl-Test-Simple
perl-devel
pkgconfig(gobject-2.0)
retry:
max: 2
when:
- 'always'
build-fedora-container:
extends:
- .fdo.container-build@fedora@x86_64
- .perl.fedora:37
stage: prep
build:
stage: build
extends:
- .fdo.distribution-image@fedora
- .perl.fedora:37
script:
- perl Makefile.PL
- make
- make test
artifacts:
expire_in: 7 days
paths:
- build
- blib
when: on_failure