2018-11-15 18:21:27 +01:00
|
|
|
language: python # This lets us use newer python versions from virtualenv
|
2019-08-31 12:12:37 +02:00
|
|
|
python: "3.7"
|
2018-11-15 18:21:27 +01:00
|
|
|
compiler: clang
|
2019-08-31 12:12:37 +02:00
|
|
|
dist: bionic
|
2018-11-15 18:21:27 +01:00
|
|
|
sudo: false
|
|
|
|
cache:
|
|
|
|
apt: true
|
|
|
|
pip: true
|
|
|
|
directories:
|
2019-03-05 12:48:50 +01:00
|
|
|
- ${HOME}/.ccache_testing
|
2020-04-21 14:07:31 +02:00
|
|
|
- ${HOME}/.ccache_docker_build_focal
|
2019-03-05 20:12:47 +01:00
|
|
|
- ${HOME}/.ccache_docker_build_bionic
|
2018-11-15 18:21:27 +01:00
|
|
|
timeout: 1000
|
2019-04-01 17:29:37 -05:00
|
|
|
if: NOT branch =~ /^(cherry-pick-)?backport-\d+-/ AND NOT branch =~ /-patch-\d+$/
|
2018-11-15 18:21:27 +01:00
|
|
|
|
2018-11-16 18:44:00 +01:00
|
|
|
env:
|
|
|
|
global:
|
2018-11-16 18:05:34 +01:00
|
|
|
- TRAVIS_TIMESTAMP=$(date +%s)
|
2019-03-07 13:08:35 +01:00
|
|
|
- TRAVIS_AVAILABLE_TIME=150 # in minutes
|
2019-03-07 14:33:53 +01:00
|
|
|
- TRAVIS_UPLOAD_TIME=5 # time considered to start the machine and the container (minutes)
|
2019-10-17 09:50:05 +02:00
|
|
|
# Docker hub username and password
|
2018-11-19 10:17:18 +01:00
|
|
|
- secure: "b7eMDIolaAnq1voGKC1ez7Kcf+/A0WZDJEHBvNwk2KubBfrGOE83GMDrFNF4NqjIprqIAvVKj+TrX1ckCvs24re3IqUJo71TaF1IgxzDDPwSsmNh5UMmvZkeiJys9bWjqDO9wYR5ietNmIE18qyMc8ToJk8oKm6AXuAG2n6znmM="
|
|
|
|
- secure: "PHCp7F3nApp38Mz6b4/OLxgfBiikRGzPQDHg3R5LX+SQOll24c/DMtwpPwizNuFEiCFcRmJ9uc1t0HWEerIZe5uqm7AtE/nMXBsvDZ+hj4Tz/fEBF98a1k4WLYheN1exFidVkJgdAeiwMOOUQXw5KuIX62bxBdzsdcd0QGwxiXo="
|
2019-03-05 12:23:49 +01:00
|
|
|
# Travis Token to create PyQGIS Documentation Travis build after Docker push
|
|
|
|
- secure: "bKJnk+GatxJItCWpC8gJs9N0bEbwK1TrIzTLgnXsl9vwqQLLhIfUMa40yj06HsbVY07AOdmr1+Wk5t+DKGf8YkaaFWBB1tIG8G/T0naN9vfWeBTEd7TlmV5a9ldEPcr6pjfi0he7/RDalvlPvDauEFKL28aVFd2BAe2Tj1euGpY="
|
2018-11-16 18:05:34 +01:00
|
|
|
|
2016-03-10 18:55:06 +01:00
|
|
|
matrix:
|
2016-04-09 15:32:29 +02:00
|
|
|
fast_finish: true
|
2016-03-10 18:55:06 +01:00
|
|
|
include:
|
2018-11-16 18:05:34 +01:00
|
|
|
|
|
|
|
##########################################################
|
|
|
|
#
|
|
|
|
# TESTS FOR STANDARD COMMITS
|
|
|
|
#
|
|
|
|
##########################################################
|
|
|
|
|
2018-11-15 18:21:27 +01:00
|
|
|
##########################################################
|
|
|
|
# QGIS TESTS ON BIONIC
|
|
|
|
##########################################################
|
2018-03-06 21:48:30 -04:00
|
|
|
- os: linux
|
2019-03-06 11:04:31 +01:00
|
|
|
name: building and testing on linux 🍳
|
2018-11-16 18:05:34 +01:00
|
|
|
if: type != cron
|
2018-03-06 21:48:30 -04:00
|
|
|
services: docker
|
|
|
|
env:
|
|
|
|
- TRAVIS_CONFIG=linux
|
2019-03-05 20:12:47 +01:00
|
|
|
- CCACHE_DIR=${HOME}/.ccache_testing
|
2018-03-06 21:48:30 -04:00
|
|
|
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
|
2018-11-16 18:12:35 +01:00
|
|
|
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps.dockerfile
|
2019-03-27 09:45:34 -05:00
|
|
|
# Label ID can be found here https://api.github.com/repos/qgis/QGIS/labels
|
|
|
|
- RUN_FLAKY_TESTS=$(.ci/travis/scripts/pr_has_label.py $TRAVIS_PULL_REQUEST 1271248184)
|
2018-03-06 21:48:30 -04:00
|
|
|
|
2018-11-15 18:21:27 +01:00
|
|
|
|
2018-11-16 18:05:34 +01:00
|
|
|
##########################################################
|
|
|
|
#
|
|
|
|
# DOCKER IMAGE BUILD JOBS ON CRON OR TAG
|
|
|
|
#
|
|
|
|
##########################################################
|
2018-11-15 18:21:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
##########################################################
|
2018-11-16 18:05:34 +01:00
|
|
|
# BIONIC DOCKER BUILD ON CRON OR TAG
|
2018-11-15 18:21:27 +01:00
|
|
|
##########################################################
|
|
|
|
- os: linux
|
2019-03-06 11:04:31 +01:00
|
|
|
name: bionic docker build 🐳
|
2018-11-16 18:05:34 +01:00
|
|
|
if: repo = qgis/QGIS AND (tag IS PRESENT OR type = cron)
|
2018-11-15 18:21:27 +01:00
|
|
|
services: docker
|
2019-10-17 09:50:05 +02:00
|
|
|
sudo: required # required to restart Docker Daemon with experimental features
|
2018-11-15 18:21:27 +01:00
|
|
|
env:
|
2019-03-05 17:38:04 +01:00
|
|
|
- TRAVIS_CONFIG=docker_image
|
2019-03-05 20:12:47 +01:00
|
|
|
- CCACHE_DIR=${HOME}/.ccache_docker_build_bionic
|
2019-03-06 17:43:59 +01:00
|
|
|
- TRIGGER_PYQGIS_DOC=FALSE
|
2018-11-16 18:05:34 +01:00
|
|
|
- DOCKER_TAG=$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )
|
2018-11-16 18:12:35 +01:00
|
|
|
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps.dockerfile
|
2019-06-18 16:58:11 +02:00
|
|
|
- CC=/usr/lib/ccache/clang
|
|
|
|
- CXX=/usr/lib/ccache/clang++
|
2018-11-15 18:21:27 +01:00
|
|
|
|
|
|
|
##########################################################
|
2020-04-21 14:07:31 +02:00
|
|
|
# FOCAL DOCKER BUILD ON CRON OR TAG
|
2018-11-15 18:21:27 +01:00
|
|
|
##########################################################
|
|
|
|
- os: linux
|
2020-04-21 14:15:45 +02:00
|
|
|
name: focal docker build 🔭
|
2018-11-16 18:05:34 +01:00
|
|
|
if: repo = qgis/QGIS AND (tag IS PRESENT OR type = cron)
|
2018-11-15 18:21:27 +01:00
|
|
|
services: docker
|
2019-10-17 09:50:05 +02:00
|
|
|
sudo: required # required to restart Docker Daemon with experimental features
|
2018-11-15 18:21:27 +01:00
|
|
|
env:
|
2019-03-05 17:38:04 +01:00
|
|
|
- TRAVIS_CONFIG=docker_image
|
2020-04-21 14:07:31 +02:00
|
|
|
- CCACHE_DIR=${HOME}/.ccache_docker_build_focal
|
2019-03-06 17:43:59 +01:00
|
|
|
- TRIGGER_PYQGIS_DOC=TRUE
|
2020-04-21 14:07:31 +02:00
|
|
|
- DOCKER_TAG="$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )_focal"
|
|
|
|
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps-focal.dockerfile
|
2019-06-18 16:58:11 +02:00
|
|
|
- CC=/usr/lib/ccache/gcc
|
|
|
|
- CXX=/usr/lib/ccache/g++ # Building SIP binding freezes with Clang in Docker, maybe a SIP issue, maybe not
|
2018-11-15 18:21:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-06 21:48:30 -04:00
|
|
|
# OSX based build with QT4 and Python 2
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode8.3 # MacOS 10.12: Sierra
|
|
|
|
# cache:
|
|
|
|
# pip: true
|
|
|
|
# directories:
|
|
|
|
# - $HOME/.ccache
|
|
|
|
# env:
|
|
|
|
# - TRAVIS_CONFIG=macos
|
|
|
|
# - IGNORE_BUILD_FAILURES=YES
|
|
|
|
#
|
|
|
|
# allow_failures:
|
|
|
|
# - os: osx
|
|
|
|
|
2015-07-27 14:35:37 +02:00
|
|
|
git:
|
2017-11-15 15:30:37 +01:00
|
|
|
depth: 120
|
2018-03-06 21:48:30 -04:00
|
|
|
|
|
|
|
notifications:
|
2020-04-21 14:07:31 +02:00
|
|
|
irc:
|
|
|
|
channels:
|
2020-01-28 14:00:11 -04:00
|
|
|
- "chat.freenode.net#qgis-test"
|
|
|
|
- "chat.freenode.net#qgis-activity"
|
|
|
|
on_failure: change
|
|
|
|
on_success: change
|
|
|
|
skip_join: true
|
2018-03-06 21:48:30 -04:00
|
|
|
|
2016-03-14 23:58:06 +01:00
|
|
|
webhooks:
|
|
|
|
urls:
|
2018-03-06 21:48:30 -04:00
|
|
|
- https://webhooks.gitter.im/e/467e3aff72e344d1dae3
|
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: never # default: never
|
|
|
|
|
2014-11-14 18:36:40 +01:00
|
|
|
before_install:
|
2018-03-06 21:48:30 -04:00
|
|
|
- ./.ci/travis/${TRAVIS_CONFIG}/before_install.sh
|
|
|
|
|
2014-11-14 18:36:40 +01:00
|
|
|
install:
|
2018-03-06 21:48:30 -04:00
|
|
|
- ./.ci/travis/${TRAVIS_CONFIG}/install.sh
|
|
|
|
|
2015-04-23 18:36:41 +02:00
|
|
|
before_script:
|
2018-03-06 21:48:30 -04:00
|
|
|
- ./.ci/travis/${TRAVIS_CONFIG}/before_script.sh
|
|
|
|
|
2015-08-12 23:36:07 +10:00
|
|
|
script:
|
2018-03-06 21:48:30 -04:00
|
|
|
- ./.ci/travis/${TRAVIS_CONFIG}/script.sh
|