CI: (fix) check that CCACHE_DIR is set, before execing mkdir

This commit is contained in:
Unai Martinez-Corral 2020-12-23 19:52:37 +01:00
parent 6e3de7bfd1
commit e37a93bffb

View File

@ -69,7 +69,9 @@ if [ "$CI_BUILD_STAGE_NAME" = "build" ]; then
fatal "Unknown os: '$CI_OS_NAME'"
fi
mkdir -p "$CCACHE_DIR" && ./ci/ci-ccache-maint.bash
if [ -n "$CCACHE_DIR" ]; then
mkdir -p "$CCACHE_DIR" && ./ci/ci-ccache-maint.bash
fi
elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then
##############################################################################
# Dependencies of jobs in the 'test' stage, i.e.: packages required to