-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.gitlab-ci.yml
78 lines (64 loc) · 1.63 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
include:
- project: eng/libadalang/libadalang
file: /utils/gitlab-ci-common.yml
stages:
- single
###############
# CHECK_ISSUE #
###############
check_issue:
extends: .check_issue
stage: single
##########################
# LANGKIT_BUILD_AND_TEST #
##########################
langkit_build_and_test:
extends: .basic
rules:
# Run this for merge requests only
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
services:
- image:pe-base
- cpu:16
- mem:16
stage: single
script:
- generic_anod_ci
- . /tmp/ci_env.sh
- anod test langkit $ACI_TRACK_QUALIFIER --smart-rebuild
- testsuite_reports
artifacts:
reports:
junit: xunit-*.xml
#############################
# LIBADALANG_BUILD_AND_TEST #
#############################
libadalang_build_and_test:
extends: .basic
services:
- image:pe-base
- cpu:16
- mem:16
stage: single
rules:
# Run this for merge requests only
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
script:
# We frequently push coupled changes to Libadalang and Langkit: when this
# happens, it is no longer possible to build Libadalang with Langkit's
# master branch and Libadalang's nightly sources. To solve this problem,
# always pretend that we have Libadalang changes in the pipe (it would have
# been rebuilt anyway).
- generic_anod_ci --add-dep eng/libadalang/libadalang
- . /tmp/ci_env.sh
- anod test libadalang $ACI_TRACK_QUALIFIER --smart-rebuild
- testsuite_reports
artifacts:
reports:
junit: xunit-*.xml
######
# CB #
######
continuous_builder:
extends: .cb
stage: single