Skip to content

Commit ff62bcf

Browse files
committed
Auto-format GitLab CI configuration file
1 parent a332065 commit ff62bcf

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.gitlab-ci.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
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}
44

55
stages:
66
- build_and_test
77
- run_downstream_ci
88

99
.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
2020

2121
# Build and test with ANOD
2222
# TODO: add a build and test based on Alire in parallel to this.
2323
build_and_test:
2424
services:
25-
- image:sandbox
26-
- cpu:8
27-
- mem:16
25+
- image:sandbox
26+
- cpu:8
27+
- mem:16
2828
stage: build_and_test
2929
interruptible: true
3030
rules:
@@ -50,34 +50,34 @@ build_and_test:
5050

5151
# Process the report
5252
- 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
5656

5757
# Build the lsif report
5858
- anod install lsif-ada
5959
- ( 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 )
7373

7474
- if [ ! -z ${FAILED+x} ]; then echo "There was at least one testcase failure" && exit 1; fi
7575

7676
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
8181

8282
.run_ci_common: &run_ci_common
8383
stage: run_downstream_ci

0 commit comments

Comments
 (0)