Produce multiple docker images

This commit is contained in:
Matthias Kuhn 2018-11-15 18:21:27 +01:00 committed by Denis Rouzaud
parent 48d498be2f
commit 6a9db5a1c9

View File

@ -1,10 +1,23 @@
language: python # This lets us use newer python versions from virtualenv
python: "3.5"
compiler: clang
dist: trusty
sudo: false
cache:
apt: true
pip: true
directories:
- $HOME/.ccache
timeout: 1000
matrix:
fast_finish: true
include:
# QT5 based build with Python 3 // using container based builds and prebuild binary dependencies in osgeo4travis
##########################################################
# QGIS TESTS ON BIONIC
##########################################################
- os: linux
services: docker
language: python # This lets us use newer python versions from virtualenv
env:
- TRAVIS_CONFIG=linux
- DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
@ -12,31 +25,14 @@ matrix:
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
- TRAVIS_TIMESTAMP=$(date +%s)
- CCACHE_DIR=${HOME}/.ccache
dist: trusty
sudo: false
cache:
apt: true
pip: true
directories:
- $HOME/.ccache
timeout: 1000
compiler: clang
python: "3.5"
addons:
apt:
sources:
packages:
if: type!=cron
- os: linux
language: python
python: "3.5"
##########################################################
# CODE LAYOUT
##########################################################
env:
- TRAVIS_CONFIG=code_layout
dist: trusty
sudo: false
cache:
apt: true
addons:
apt:
sources:
@ -69,6 +65,52 @@ matrix:
- libstrictures-perl
- libstring-escape-perl
- libtry-tiny-perl
##########################################################
#
# DOCKER IMAGE BUILD JOBS ON CRON
#
##########################################################
##########################################################
# BIONIC DOCKER BUILD ON CRON
##########################################################
- os: linux
services: docker
env:
- TRAVIS_CONFIG=linux
- DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
# TRAVIS_BRANCH is either the git tag or the branch name when no tag
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
- TRAVIS_TIMESTAMP=$(date +%s)
- CCACHE_DIR=${HOME}/.ccache
- DOCKER_DEBIAN_DISTRO=bionic
if: type=cron
##########################################################
# COSMIC DOCKER BUILD ON CRON
##########################################################
- os: linux
services: docker
env:
- TRAVIS_CONFIG=linux
- DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
# TRAVIS_BRANCH is either the git tag or the branch name when no tag
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
- TRAVIS_TIMESTAMP=$(date +%s)
- CCACHE_DIR=${HOME}/.ccache
- DOCKER_DEBIAN_DISTRO=cosmic
if: type=cron
# OSX based build with QT4 and Python 2
# - os: osx
# osx_image: xcode8.3 # MacOS 10.12: Sierra