Skip to content
Permalink
Browse files

Produce multiple docker images

  • Loading branch information
m-kuhn authored and 3nids committed Nov 15, 2018
1 parent 0651ead commit 33c2fc4d279b53fc7735f860c860d948255bee90
Showing with 66 additions and 24 deletions.
  1. +66 −24 .travis.yml
@@ -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:
@@ -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

0 comments on commit 33c2fc4

Please sign in to comment.
You can’t perform that action at this time.