Skip to content
Permalink
Browse files

fix mkdir ccache_dir

  • Loading branch information
3nids committed Mar 5, 2019
1 parent b249fc1 commit a001d3953a7eeded74fbca2a32d40eae6b21e370
Showing with 2 additions and 2 deletions.
  1. +2 −2 .ci/travis/linux/script.sh
@@ -16,7 +16,7 @@

set -e

mkdir -p "$CCACHE_DIR"
mkdir -p "CCACHE_DIR_IMAGE_BUILD"

if [[ ${DOCKER_BUILD_QGIS_IMAGE} =~ true ]]; then
# copy ccache dir within QGIS source so it can be accessed from docker
@@ -33,7 +33,7 @@ if [[ ${DOCKER_BUILD_QGIS_IMAGE} =~ true ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker push "qgis/qgis:${DOCKER_TAG}"
echo "Copy build cache from Docker container to Travis cache directory"
rm -rf ${CCACHE_DIR_IMAGE_BUILD}/*
rm -rf "${CCACHE_DIR_IMAGE_BUILD:?}/"*
container_id=$(docker images -q "qgis/qgis:${DOCKER_TAG}")
docker cp ${container_id}:/usr/src/QGIS/.ccache_image_build ${CCACHE_DIR_IMAGE_BUILD}
popd

0 comments on commit a001d39

Please sign in to comment.
You can’t perform that action at this time.