mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[travis] Run tests even with build failures on osx
This commit is contained in:
parent
c1d84dee96
commit
c732c68749
@ -93,6 +93,7 @@ matrix:
|
||||
- os: osx
|
||||
env:
|
||||
- BUILD=osx
|
||||
- IGNORE_BUILD_FAILURES=YES
|
||||
|
||||
git:
|
||||
depth: 30
|
||||
|
@ -2,5 +2,5 @@ echo $PATH
|
||||
|
||||
export PATH=/usr/bin:${PATH}
|
||||
|
||||
ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest|PyQgsServer|ProcessingGdalAlgorithmsTest' -S ./qgis-test-travis.ctest --output-on-failure
|
||||
ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest|PyQgsServer|ProcessingGdalAlgorithmsTest|qgis_composerhtmltest' -S ./qgis-test-travis.ctest --output-on-failure
|
||||
|
||||
|
@ -65,15 +65,18 @@ SET(RESULT_LINK "http://dash.orfeo-toolbox.org/index.php?project=QGIS&filtercoun
|
||||
EXECUTE_PROCESS(COMMAND curl --data-urlencode "url=${RESULT_LINK}" -s http://tinyurl.com/api-create.php
|
||||
OUTPUT_VARIABLE SHORTURL)
|
||||
|
||||
IF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
|
||||
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30)
|
||||
MESSAGE("")
|
||||
MESSAGE(" ${Yellow}Test results submitted to${ColorReset}")
|
||||
MESSAGE(" ${BoldYellow}${SHORTURL}${ColorReset}")
|
||||
MESSAGE("")
|
||||
MESSAGE( FATAL_ERROR " ${Red}Build failed. Not running tests.${ColorReset}" )
|
||||
MESSAGE("")
|
||||
ENDIF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
|
||||
SET(IGNORE_BUILD_FAILURES $ENV{IGNORE_BUILD_FAILURES})
|
||||
IF(NOT IGNORE_BUILD_FAILURES)
|
||||
IF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
|
||||
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30)
|
||||
MESSAGE("")
|
||||
MESSAGE(" ${Yellow}Test results submitted to${ColorReset}")
|
||||
MESSAGE(" ${BoldYellow}${SHORTURL}${ColorReset}")
|
||||
MESSAGE("")
|
||||
MESSAGE( FATAL_ERROR " ${Red}Build failed. Not running tests.${ColorReset}" )
|
||||
MESSAGE("")
|
||||
ENDIF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
|
||||
ENDIF(NOT IGNORE_BUILD_FAILURES)
|
||||
ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" PARALLEL_LEVEL ${PARALLEL_LEVEL} RETURN_VALUE TESTRES)
|
||||
IF(NOT ${NUMWARN} EQUAL 0 OR NOT ${TESTRES} EQUAL 0)
|
||||
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30)
|
||||
|
Loading…
x
Reference in New Issue
Block a user