Skip to content

Commit c732c68

Browse files
committed
[travis] Run tests even with build failures on osx
1 parent c1d84de commit c732c68

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ matrix:
9393
- os: osx
9494
env:
9595
- BUILD=osx
96+
- IGNORE_BUILD_FAILURES=YES
9697

9798
git:
9899
depth: 30

ci/travis/osx/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ echo $PATH
22

33
export PATH=/usr/bin:${PATH}
44

5-
ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest|PyQgsServer|ProcessingGdalAlgorithmsTest' -S ./qgis-test-travis.ctest --output-on-failure
5+
ctest -V -E 'qgis_openstreetmaptest|qgis_wcsprovidertest|PyQgsServer|ProcessingGdalAlgorithmsTest|qgis_composerhtmltest' -S ./qgis-test-travis.ctest --output-on-failure
66

qgis-test-travis.ctest

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,18 @@ SET(RESULT_LINK "http://dash.orfeo-toolbox.org/index.php?project=QGIS&filtercoun
6565
EXECUTE_PROCESS(COMMAND curl --data-urlencode "url=${RESULT_LINK}" -s http://tinyurl.com/api-create.php
6666
OUTPUT_VARIABLE SHORTURL)
6767

68-
IF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
69-
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30)
70-
MESSAGE("")
71-
MESSAGE(" ${Yellow}Test results submitted to${ColorReset}")
72-
MESSAGE(" ${BoldYellow}${SHORTURL}${ColorReset}")
73-
MESSAGE("")
74-
MESSAGE( FATAL_ERROR " ${Red}Build failed. Not running tests.${ColorReset}" )
75-
MESSAGE("")
76-
ENDIF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
68+
SET(IGNORE_BUILD_FAILURES $ENV{IGNORE_BUILD_FAILURES})
69+
IF(NOT IGNORE_BUILD_FAILURES)
70+
IF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
71+
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30)
72+
MESSAGE("")
73+
MESSAGE(" ${Yellow}Test results submitted to${ColorReset}")
74+
MESSAGE(" ${BoldYellow}${SHORTURL}${ColorReset}")
75+
MESSAGE("")
76+
MESSAGE( FATAL_ERROR " ${Red}Build failed. Not running tests.${ColorReset}" )
77+
MESSAGE("")
78+
ENDIF(NOT ${BUILDRES} EQUAL 0 OR NOT ${NUMERR} EQUAL 0)
79+
ENDIF(NOT IGNORE_BUILD_FAILURES)
7780
ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" PARALLEL_LEVEL ${PARALLEL_LEVEL} RETURN_VALUE TESTRES)
7881
IF(NOT ${NUMWARN} EQUAL 0 OR NOT ${TESTRES} EQUAL 0)
7982
ctest_submit (RETRY_COUNT 3 RETRY_DELAY 30)

0 commit comments

Comments
 (0)