1
1
variables :
2
- # The common part of the URL for cloning from within a CI
3
- GIT_CLONE_BASE : https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}
2
+ # The common part of the URL for cloning from within a CI
3
+ GIT_CLONE_BASE : https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}
4
4
5
5
stages :
6
6
- build_and_test
7
7
- run_downstream_ci
8
8
9
9
.basic-setup :
10
- # Temporary: clone the specific branch of ci-fragments
11
- # TODO: remove the next 4 lines when this version of ci-fragments is available in the image
12
- - cd /tmp
13
- - git clone $GIT_CLONE_BASE/eng/it/ci-fragments -b topic/generic_ci_phase_2 --depth 1
14
- - export PATH=/tmp/ci-fragments:$PATH
15
- - cd -
16
- # Use generic_anod_ci here.
17
- - generic_anod_ci
18
- - cat /tmp/ci_env.sh
19
- - . /tmp/ci_env.sh
10
+ # Temporary: clone the specific branch of ci-fragments
11
+ # TODO: remove the next 4 lines when this version of ci-fragments is available in the image
12
+ - cd /tmp
13
+ - git clone $GIT_CLONE_BASE/eng/it/ci-fragments -b topic/generic_ci_phase_2 --depth 1
14
+ - export PATH=/tmp/ci-fragments:$PATH
15
+ - cd -
16
+ # Use generic_anod_ci here.
17
+ - generic_anod_ci
18
+ - cat /tmp/ci_env.sh
19
+ - . /tmp/ci_env.sh
20
20
21
21
# Build and test with ANOD
22
22
# TODO: add a build and test based on Alire in parallel to this.
23
23
build_and_test :
24
24
services :
25
- - image:sandbox
26
- - cpu:8
27
- - mem:16
25
+ - image:sandbox
26
+ - cpu:8
27
+ - mem:16
28
28
stage : build_and_test
29
29
interruptible : true
30
30
rules :
@@ -50,34 +50,34 @@ build_and_test:
50
50
51
51
# Process the report
52
52
- e3-testsuite-report
53
- --failure-exit-code 1
54
- --xunit-output $CI_PROJECT_DIR/xunit_output.xml
55
- $SB_BASE/results/new/ || FAILED=true
53
+ --failure-exit-code 1
54
+ --xunit-output $CI_PROJECT_DIR/xunit_output.xml
55
+ $SB_BASE/results/new/ || FAILED=true
56
56
57
57
# Build the lsif report
58
58
- anod install lsif-ada
59
59
- ( cd $ANOD_DEFAULT_SANDBOX_DIR ;
60
- eval `anod printenv lsif-ada`;
61
- eval `anod printenv stable-gnat`;
62
- eval `anod printenv ada_libfswatch`;
63
- eval `anod printenv stable-templates_parser`;
64
- eval `anod printenv stable-langkit_support`;
65
- eval `anod printenv stable-libgpr2 --qualifier=bare`;
66
- eval `anod printenv stable-libadalang`;
67
- eval `anod printenv stable-libadalang-tools`;
68
- export GPR_PROJECT_PATH=` pwd `/x86_64-linux/als/src/subprojects/gnatdoc/gnat:$GPR_PROJECT_PATH;
69
- export GPR_PROJECT_PATH=` pwd `/x86_64-linux/als/src/subprojects/VSS/gnat:$GPR_PROJECT_PATH;
70
- cd $ANOD_DEFAULT_SANDBOX_DIR/x86_64-linux/als/src;
71
- lsif-ada gnat/lsp_server.gpr > $CI_PROJECT_DIR/dump.lsif 2>/dev/null ||
72
- touch $CI_PROJECT_DIR/dump.lsif )
60
+ eval `anod printenv lsif-ada`;
61
+ eval `anod printenv stable-gnat`;
62
+ eval `anod printenv ada_libfswatch`;
63
+ eval `anod printenv stable-templates_parser`;
64
+ eval `anod printenv stable-langkit_support`;
65
+ eval `anod printenv stable-libgpr2 --qualifier=bare`;
66
+ eval `anod printenv stable-libadalang`;
67
+ eval `anod printenv stable-libadalang-tools`;
68
+ export GPR_PROJECT_PATH=` pwd `/x86_64-linux/als/src/subprojects/gnatdoc/gnat:$GPR_PROJECT_PATH;
69
+ export GPR_PROJECT_PATH=` pwd `/x86_64-linux/als/src/subprojects/VSS/gnat:$GPR_PROJECT_PATH;
70
+ cd $ANOD_DEFAULT_SANDBOX_DIR/x86_64-linux/als/src;
71
+ lsif-ada gnat/lsp_server.gpr > $CI_PROJECT_DIR/dump.lsif 2>/dev/null ||
72
+ touch $CI_PROJECT_DIR/dump.lsif )
73
73
74
74
- if [ ! -z ${FAILED+x} ]; then echo "There was at least one testcase failure" && exit 1; fi
75
75
76
76
artifacts :
77
- when : always # Upload on errors too
78
- reports :
79
- junit : xunit_output.xml
80
- lsif : dump.lsif
77
+ when : always # Upload on errors too
78
+ reports :
79
+ junit : xunit_output.xml
80
+ lsif : dump.lsif
81
81
82
82
.run_ci_common : &run_ci_common
83
83
stage : run_downstream_ci
0 commit comments