Skip to content
Snippets Groups Projects
Commit e66b58d0 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adding cleaning test

parent b8012829
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
.idea
*.log
spack_*.json
spack-*.json
tmp/
.spack-env
compiler_definitions.yaml
......@@ -136,8 +136,10 @@ spack:install_compilers:
- .parallel_job
script:
- ci/install_compilers.sh
- source ci/stack_env.sh
- ${STACK_LOCATION}/spack/bin/spack --color always -e ${environment} config blame compilers
- ${CI_PROJECT_DIR}/ci/update_squashfs.sh
artifacts:
reports:
......@@ -195,3 +197,16 @@ spack:mksquashfs:
timeout: 1h
rules:
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /v[0-9]+.*/
post_cleaning:
stage: .post
variables:
APPTAINER_EXEC_OPTIONS: >-
--cleanenv
--bind ${CI_DATA_LT}
--bind ${CI_DATA_ST}
--bind ${CI_DATA_LT}
extends:
- .parallel_definition
scripts:
- ./ci/cleaning_fs.sh
#!/usr/bin/env sh
set -o errexit
set -o pipefail
set -o nounset
for i in $(ls -1d ${CI_DATA_ST}/overlayfs/*-${environment}-${stack}-${SQUASHFS_ID}-*)
do
id=$(echo $i | sed -e "s/.*-\([0-9]\+\)\(-[a-z0-9]\+\)\?/\1/")
if [ $id -le ${CI_PIPELINE_ID} ]
then
echo "Cleaning $i"
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment