-
Notifications
You must be signed in to change notification settings - Fork 18
/
.gitlab-ci.yml
67 lines (58 loc) · 2.01 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
stages:
- check
- build
- test-gnat-llvm
- test-ccg
# CCG testing is launched when some specific files have changed, or manually
.ccg-rulesrules_template:: &ccg-rules
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
changes:
- llvm-interface/ccg/*
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual
allow_failure: true # This improves reporting. Otherwise the CI remains "stuck" untils those jobs are launched
include:
# Issue check
- component: $CI_SERVER_FQDN/eng/gitlab-templates/check-issue@~latest
# Build
- component: $CI_SERVER_FQDN/eng/gitlab-templates/build@~latest
inputs:
anod-args: run build
generic-anod-ci-args: --add-dep eng/toolchain/gnat
cpus: 16
save-component: true
# Testing of gnat-llvm
- component: $CI_SERVER_FQDN/eng/gitlab-templates/test@~latest
inputs:
job-name: fixedbugs
stage: test-gnat-llvm
anod-args: run test_fixedbugs
generic-anod-ci-args: --add-dep eng/toolchain/gnatbugs-fixed
- component: $CI_SERVER_FQDN/eng/gitlab-templates/test@~latest
inputs:
job-name: acats
stage: test-gnat-llvm
anod-args: run test_acats
generic-anod-ci-args: --add-dep eng/toolchain/acats
# Testing of ccg
- component: $CI_SERVER_FQDN/eng/gitlab-templates/test@~latest
inputs:
job-name: ccg
stage: test-ccg
anod-args: run test_ccg
generic-anod-ci-args: --add-dep eng/toolchain/ccg-tests
rules: *ccg-rules
- component: $CI_SERVER_FQDN/eng/gitlab-templates/test@~latest
inputs:
job-name: acats-ccg
stage: test-ccg
anod-args: run test_acats_ccg
generic-anod-ci-args: --add-dep eng/toolchain/acats
rules: *ccg-rules
# Additional customization
fixedbugs:
# It happens regularly that tests are added which fail for GNAT-LLVM; not
# failing the pipeline improves the user experience in such cases because it
# lets us merge without scary warning messages (while still showing failed
# tests for assessment).
allow_failure: true