9
9
# Build and test with ANOD
10
10
# TODO: add a build and test based on Alire in parallel to this.
11
11
build_and_test :
12
- rules :
13
- # Let's do the job only for merge request events: that's
14
- # when we know whether the target branch is 'edge'.
15
- - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
16
12
services :
17
13
- image:sandbox
18
14
- cpu:8
@@ -26,7 +22,7 @@ build_and_test:
26
22
# Check whether we're in an MR targeting 'edge' and setup some
27
23
# variables if so.
28
24
- TARGET_BRANCH="master"
29
- - if [ "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" = "edge " ]; then
25
+ - if [ "x $CI_MERGE_REQUEST_TARGET_BRANCH_NAME" = "xedge " ]; then
30
26
echo "Targeting the edge branch." ;
31
27
REPO_SUFFIX="-edge" ;
32
28
BUILD_SPACE_SUFFIX="_edge" ;
@@ -75,11 +71,24 @@ build_and_test:
75
71
--xunit-output $CI_PROJECT_DIR/xunit_output.xml
76
72
x86_64-linux/als${BUILD_SPACE_SUFFIX}-test/results/new/ || FAILED=true
77
73
74
+ - anod install lsif-ada
75
+ - ( eval `anod printenv lsif-ada`;
76
+ eval `anod printenv stable-gnat`;
77
+ eval `anod printenv ada_libfswatch`;
78
+ eval `anod printenv stable-templates_parser`;
79
+ eval `anod printenv stable-langkit_support`;
80
+ eval `anod printenv stable-libgpr2 --qualifier=bare`;
81
+ eval `anod printenv stable-libadalang`;
82
+ eval `anod printenv stable-libadalang-tools`;
83
+ export GPR_PROJECT_PATH=/it/wave/x86_64-linux/als/src/subprojects/gnatdoc/gnat:$GPR_PROJECT_PATH;
84
+ export GPR_PROJECT_PATH=/it/wave/x86_64-linux/als/src/subprojects/VSS/gnat:$GPR_PROJECT_PATH;
85
+ cd /it/wave/x86_64-linux/als/src;
86
+ lsif-ada gnat/lsp_server.gpr > $CI_PROJECT_DIR/dump.lsif )
87
+
78
88
- if [ ! -z ${FAILED+x} ]; then echo "There was at least one testcase failure" && exit 1; fi
79
89
80
90
artifacts :
81
91
when : always # Upload on errors too
82
- paths :
83
- - xunit_output.xml
84
92
reports :
85
- junit : xunit_output.xml
93
+ junit : xunit_output.xml
94
+ lsif : dump.lsif
0 commit comments