File tree Expand file tree Collapse file tree 5 files changed +19
-14
lines changed Expand file tree Collapse file tree 5 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 16
16
17
17
set -e
18
18
19
- docker run -t --name qgis_container -v ${TRAVIS_BUILD_DIR} :/root/QGIS -v ${CCACHE_DIR} :/root/.ccache qgis/qgis3-build-deps:${DOCKER_TAG} /root/QGIS/.ci/travis/linux/scripts/docker-qgis-build.sh
19
+ # build QGIS in docker
20
+ docker run -t --name qgis_container \
21
+ -v ${TRAVIS_BUILD_DIR} :/root/QGIS \
22
+ -v ${CCACHE_DIR} :/root/.ccache qgis/qgis3-build-deps:${DOCKER_TAG} \
23
+ -e TRAVIS_UPLOAD_TIME=${TRAVIS_UPLOAD_TIME} \
24
+ -e TRAVIS_BRANCH=${TRAVIS_BRANCH} \
25
+ -e TRAVIS_OS_NAME=${TRAVIS_OS_NAME} \
26
+ -e TRAVIS_CONFIG=${TRAVIS_CONFIG} \
27
+ -e TRAVIS=${TRAVIS} \
28
+ -e QGIS_NO_OVERRIDE_IMPORT=1 \
29
+ /root/QGIS/.ci/travis/linux/scripts/docker-qgis-build.sh
30
+
31
+ # commit container
20
32
docker commit qgis_container qgis_image
21
33
22
- # running QGIS tests
34
+ # running QGIS tests in commited image
23
35
docker-compose -f ${TRAVIS_BUILD_DIR} /.docker/docker-compose.travis.yml run qgis-deps /root/QGIS/.ci/travis/linux/scripts/docker-qgis-test.sh
24
36
25
37
# running tests for the python test runner
26
38
docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR} /tests/src/python:/tests_directory -e DISPLAY=:99 qgis_image " /usr/bin/supervisord -c /etc/supervisor/supervisord.conf"
27
39
sleep 10 # Wait for xvfb to finish starting
28
40
29
-
30
41
declare -A testrunners
31
42
# Passing cases:
32
43
testrunners[" test_testrunner.run_passing" ]=0
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
19
19
export SEGFAULT_SIGNALS=" abrt segv"
20
20
export CTEST_BUILD_COMMAND=" /usr/bin/ninja"
21
21
export CTEST_PARALLEL_LEVEL=1
22
+ export CTEST_BUILD_DIR=/root/QGIS
22
23
23
24
# #############################
24
25
# Variables for output styling
@@ -77,7 +78,7 @@ echo "travis_fold:end:cmake"
77
78
# Hopefully clocks are in sync :)
78
79
79
80
CURRENT_TIME=$( date +%s)
80
- TIMEOUT=$(( ( TRAVIS_AVAILABLE_TIME - UPLOAD_TIME ) * 60 - CURRENT_TIME + TRAVIS_AVAILABLE_TIMESTAMP))
81
+ TIMEOUT=$(( ( TRAVIS_AVAILABLE_TIME - TRAVIS_UPLOAD_TIME ) * 60 - CURRENT_TIME + TRAVIS_AVAILABLE_TIMESTAMP))
81
82
TIMEOUT=$(( TIMEOUT < 300 ? 300 : TIMEOUT ))
82
83
echo " Timeout: ${TIMEOUT} s (started at ${TRAVIS_AVAILABLE_TIMESTAMP} , current: ${CURRENT_TIME} )"
83
84
Original file line number Diff line number Diff line change 69
69
# Run tests
70
70
# ##########
71
71
CURRENT_TIME=$( date +%s)
72
- TIMEOUT=$(( ( TRAVIS_AVAILABLE_TIME - UPLOAD_TIME ) * 60 - CURRENT_TIME + TRAVIS_AVAILABLE_TIMESTAMP))
72
+ TIMEOUT=$(( ( TRAVIS_AVAILABLE_TIME - TRAVIS_UPLOAD_TIME ) * 60 - CURRENT_TIME + TRAVIS_AVAILABLE_TIMESTAMP))
73
73
echo " Timeout: ${TIMEOUT} s (started at ${TRAVIS_AVAILABLE_TIMESTAMP} , current: ${CURRENT_TIME} )"
74
74
timeout ${TIMEOUT} s python3 /root/QGIS/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V -E " $( cat /root/QGIS/.ci/travis/linux/blacklist.txt | sed -r ' /^(#.*?)?$/d' | paste -sd ' |' -) " -S /root/QGIS/.ci/travis/travis.ctest --output-on-failure
75
75
rv=$?
Original file line number Diff line number Diff line change @@ -20,16 +20,9 @@ services:
20
20
- postgres
21
21
- mssql
22
22
environment :
23
- - CCACHE_DIR=/root/.ccache
24
- - CTEST_BUILD_DIR=/root/QGIS
23
+ - TRAVIS_UPLOAD_TIME=${TRAVIS_UPLOAD_TIME}
25
24
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
26
- - TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}
27
- - TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
28
- - TRAVIS_COMMIT_RANGE=${TRAVIS_COMMIT_RANGE}
29
25
- TRAVIS_OS_NAME=${TRAVIS_OS_NAME}
30
26
- TRAVIS_CONFIG=${TRAVIS_CONFIG}
31
27
- TRAVIS=${TRAVIS}
32
- - TRAVIS_TIMESTAMP=${TRAVIS_TIMESTAMP}
33
- - QGIS_DISABLE_MESSAGE_HOOKS=1
34
28
- QGIS_NO_OVERRIDE_IMPORT=1
35
- - DISPLAY=:99
Original file line number Diff line number Diff line change 17
17
global :
18
18
- TRAVIS_TIMESTAMP=$(date +%s)
19
19
- TRAVIS_AVAILABLE_TIME=150 # in minutes
20
- - UPLOAD_TIME =5 # time considered to start the machine and the container (minutes)
20
+ - TRAVIS_UPLOAD_TIME =5 # time considered to start the machine and the container (minutes)
21
21
# Docker hub username and passowrd
22
22
- secure : " b7eMDIolaAnq1voGKC1ez7Kcf+/A0WZDJEHBvNwk2KubBfrGOE83GMDrFNF4NqjIprqIAvVKj+TrX1ckCvs24re3IqUJo71TaF1IgxzDDPwSsmNh5UMmvZkeiJys9bWjqDO9wYR5ietNmIE18qyMc8ToJk8oKm6AXuAG2n6znmM="
23
23
- secure : " PHCp7F3nApp38Mz6b4/OLxgfBiikRGzPQDHg3R5LX+SQOll24c/DMtwpPwizNuFEiCFcRmJ9uc1t0HWEerIZe5uqm7AtE/nMXBsvDZ+hj4Tz/fEBF98a1k4WLYheN1exFidVkJgdAeiwMOOUQXw5KuIX62bxBdzsdcd0QGwxiXo="
You can’t perform that action at this time.
0 commit comments