Skip to content

Commit

Permalink
Produce multiple docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and 3nids committed Nov 17, 2018
1 parent 0651ead commit 33c2fc4
Showing 1 changed file with 66 additions and 24 deletions.
90 changes: 66 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,38 @@
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
# 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
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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33c2fc4

Please sign in to comment.