-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
86 lines (75 loc) · 2.11 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
80
81
82
83
84
85
86
stages:
- build_and_test
- downstream_ci
#########
# BUILD #
#########
.basic-setup:
# Use generic_anod_ci here.
- generic_anod_ci
- cat /tmp/ci_env.sh
- . /tmp/ci_env.sh
build_and_test:
services:
- image:e3
- cpu:8
- mem:16
stage: build_and_test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'pipeline'
script:
- !reference [.basic-setup]
# Build gnatdoc
- anod build gnatdoc4 $ACI_TRACK_QUALIFIER
# Test gnatdoc
- anod test gnatdoc4 $ACI_TRACK_QUALIFIER
# Process the report
- BUILD_SPACE_NAME=`anod eval gnatdoc4 build_space_name --primitive test $ACI_TRACK_QUALIFIER | tr -d "'"`
- SB_BASE=$ANOD_DEFAULT_SANDBOX_DIR/x86_64-linux/$BUILD_SPACE_NAME
- e3-testsuite-report
--failure-exit-code 1
--xunit-output $CI_PROJECT_DIR/xunit_output.xml
$SB_BASE//results/new/ || FAILED=true
- if [ ! -z ${FAILED+x} ]; then echo "There was at least one testcase failure" && exit 1; fi
artifacts:
when: always
reports:
junit: xunit_output.xml
build_doc:
services:
- image:e3
stage: build_and_test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
changes:
- documentation/users_guide/*
- if: $CI_PIPELINE_SOURCE == 'pipeline'
changes:
- documentation/users_guide/*
- if: $CI_COMMIT_BRANCH == 'master' && $CI_COMMIT_TITLE =~ /Merge branch.*/
changes:
- documentation/users_guide/*
- if: $CI_COMMIT_BRANCH == 'edge' && $CI_COMMIT_TITLE =~ /Merge branch.*/
changes:
- documentation/users_guide/*
script:
- !reference [.basic-setup]
# Build gnatdoc
- anod build gnatdoc4-doc $ACI_TRACK_QUALIFIER
downstream_ci:
stage: downstream_ci
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual
inherit:
variables: false
variables:
ACI_UPSTREAM_PROJECT_ID: $CI_PROJECT_ID
ACI_UPSTREAM_MERGE_REQUEST_IID: $CI_MERGE_REQUEST_IID
parallel:
matrix:
- PROJECT: ["eng/ide/ada_language_server"]
trigger:
strategy: depend
project: $PROJECT