Skip to content

Commit e0d6c3f

Browse files
committed
[travis] Readonly ccache for pull requests
1 parent c07f02d commit e0d6c3f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ci/travis/linux/qt4/script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@ export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH}
1818
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib
1919
export CTEST_PARALLEL_LEVEL=1
2020
export CCACHE_CPP2=yes
21+
export CCACHE_TEMPDIR=/tmp
22+
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
23+
export CCACHE_READONLY=yes
24+
chmod -R ugo-w ~/.ccache
25+
fi
2126

2227
xvfb-run ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest' -S ./qgis-test-travis.ctest --output-on-failure

ci/travis/linux/qt5/script.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export PYTHONPATH=${HOME}/osgeo4travis/lib/python3.3/site-packages/
1717
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH}
1818
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib
1919
export CTEST_PARALLEL_LEVEL=1
20+
export CCACHE_TEMPDIR=/tmp
21+
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
22+
export CCACHE_READONLY=yes
23+
chmod -R ugo-w ~/.ccache
24+
fi
2025

2126
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2227

0 commit comments

Comments
 (0)