mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
[travis] Only build outside ctest on master
This commit is contained in:
parent
e6c7421c08
commit
349c19752a
@ -29,9 +29,16 @@ export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
|
|||||||
|
|
||||||
export CTEST_BUILD_COMMAND="/usr/bin/make -j3 -i -k"
|
export CTEST_BUILD_COMMAND="/usr/bin/make -j3 -i -k"
|
||||||
|
|
||||||
pushd build
|
# This works around an issue where travis would timeout on master because
|
||||||
$CTEST_BUILD_COMMAND
|
# when make is run inside ctest no output is generated. At the current time
|
||||||
popd
|
# nobody know why, but at least this workaround gets travis results for master
|
||||||
|
# back. Better approaches VERY welcome.
|
||||||
|
if [[ ${TRAVIS_BRANCH} == "master" ]];
|
||||||
|
then
|
||||||
|
pushd build
|
||||||
|
$CTEST_BUILD_COMMAND
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
python ${TRAVIS_BUILD_DIR}/.ci/travis/scripts/ctest2travis.py \
|
python ${TRAVIS_BUILD_DIR}/.ci/travis/scripts/ctest2travis.py \
|
||||||
xvfb-run ctest -V -E "$(cat ${DIR}/blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" -S ${DIR}/../travis.ctest --output-on-failure
|
xvfb-run ctest -V -E "$(cat ${DIR}/blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" -S ${DIR}/../travis.ctest --output-on-failure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user