forked from chef/omnibus-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
66 lines (58 loc) · 1.1 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
---
image: cincproject/omnibus-debian
stages:
- test
- generate
- trigger
- build
workflow:
rules:
# Run if we trigger a pipeline from the web
- if: $CI_PIPELINE_SOURCE == "web"
# Run if this is a merge request
- if: $CI_MERGE_REQUEST_ID
generate-builds:
stage: generate
tags:
- docker-x86_64
script:
- source /home/omnibus/load-omnibus-toolchain.sh
- ./test/generate_gitlab_jobs.rb
artifacts:
paths:
- build-jobs.yml
test:ruby-3.0:
stage: test
image: ruby:3.0
tags:
- docker-x86_64
script:
- .expeditor/run_linux_tests.sh rake
test:ruby-3.1:
stage: test
image: ruby:3.1
tags:
- docker-x86_64
script:
- .expeditor/run_linux_tests.sh rake
test:ruby-3.2:
stage: test
image: ruby:3.2
tags:
- docker-x86_64
script:
- .expeditor/run_linux_tests.sh rake
test:ruby-3.3:
stage: test
image: ruby:3.3
tags:
- docker-x86_64
script:
- .expeditor/run_linux_tests.sh rake
trigger-builds:
stage: trigger
trigger:
include:
- artifact: build-jobs.yml
job: generate-builds
strategy: depend