Skip to content

Commit 218c9f4

Browse files
committed
Change cache location to a temp folder
1 parent 9b2dd3e commit 218c9f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ stages:
7575

7676
- *deploy_package
7777

78-
# set caching location
78+
# place cache in proper location; avoid project dir to avoid slowdown of source packaging
7979
- mkdir -p $CI_PROJECT_DIR/gnatprove_cache
80-
- export GNATPROVE_CACHE="file:$CI_PROJECT_DIR/gnatprove_cache"
80+
- mv $CI_PROJECT_DIR/gnatprove_cache /tmp
81+
- export GNATPROVE_CACHE="file:/tmp/gnatprove_cache"
8182
# set location of sources for coverage
8283
- ANOD_BUILDSPACE_SOURCES=`anod eval spark2014-core build_space_name --primitive build --qualifier=coverage,assertions`
8384
- export COVERAGE_ROOT_DIR=$ANOD_DEFAULT_SANDBOX_DIR/x86_64-linux/$ANOD_BUILDSPACE_SOURCES/src
@@ -92,6 +93,9 @@ stages:
9293

9394
- testsuite_reports || exit_code=$?
9495

96+
# Reestablish cache
97+
- mv /tmp/gnatprove_cache $CI_PROJECT_DIR/gnatprove_cache
98+
9599
# Coverage HTML report
96100
- export HTMLTARGETDIR=$CI_COMMIT_BRANCH
97101
- if [[ $CI_PIPELINE_SOURCE == "merge_request_event" ]]; then export HTMLTARGETDIR=MRs/$CI_MERGE_REQUEST_IID ; fi

0 commit comments

Comments
 (0)