Skip to content

Commit 56cc9be

Browse files
committed
Produce multiple docker images
1 parent 3e14761 commit 56cc9be

File tree

1 file changed

+66
-24
lines changed

1 file changed

+66
-24
lines changed

.travis.yml

+66-24
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,38 @@
1+
language: python # This lets us use newer python versions from virtualenv
2+
python: "3.5"
3+
compiler: clang
4+
dist: trusty
5+
sudo: false
6+
cache:
7+
apt: true
8+
pip: true
9+
directories:
10+
- $HOME/.ccache
11+
timeout: 1000
12+
113
matrix:
214
fast_finish: true
315
include:
4-
# QT5 based build with Python 3 // using container based builds and prebuild binary dependencies in osgeo4travis
16+
##########################################################
17+
# QGIS TESTS ON BIONIC
18+
##########################################################
519
- os: linux
620
services: docker
7-
language: python # This lets us use newer python versions from virtualenv
821
env:
922
- TRAVIS_CONFIG=linux
1023
- DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
1124
# TRAVIS_BRANCH is either the git tag or the branch name when no tag
1225
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
1326
- TRAVIS_TIMESTAMP=$(date +%s)
1427
- CCACHE_DIR=${HOME}/.ccache
15-
dist: trusty
16-
sudo: false
17-
cache:
18-
apt: true
19-
pip: true
20-
directories:
21-
- $HOME/.ccache
22-
timeout: 1000
23-
compiler: clang
24-
python: "3.5"
25-
addons:
26-
apt:
27-
sources:
28-
packages:
28+
if: type!=cron
2929

30-
31-
- os: linux
32-
language: python
33-
python: "3.5"
30+
##########################################################
31+
# CODE LAYOUT
32+
##########################################################
33+
3434
env:
3535
- TRAVIS_CONFIG=code_layout
36-
dist: trusty
37-
sudo: false
38-
cache:
39-
apt: true
4036
addons:
4137
apt:
4238
sources:
@@ -69,6 +65,52 @@ matrix:
6965
- libstrictures-perl
7066
- libstring-escape-perl
7167
- libtry-tiny-perl
68+
69+
70+
71+
##########################################################
72+
#
73+
# DOCKER IMAGE BUILD JOBS ON CRON
74+
#
75+
##########################################################
76+
77+
78+
79+
80+
81+
##########################################################
82+
# BIONIC DOCKER BUILD ON CRON
83+
##########################################################
84+
- os: linux
85+
services: docker
86+
env:
87+
- TRAVIS_CONFIG=linux
88+
- DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
89+
# TRAVIS_BRANCH is either the git tag or the branch name when no tag
90+
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
91+
- TRAVIS_TIMESTAMP=$(date +%s)
92+
- CCACHE_DIR=${HOME}/.ccache
93+
- DOCKER_DEBIAN_DISTRO=bionic
94+
if: type=cron
95+
96+
##########################################################
97+
# COSMIC DOCKER BUILD ON CRON
98+
##########################################################
99+
- os: linux
100+
services: docker
101+
env:
102+
- TRAVIS_CONFIG=linux
103+
- DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
104+
# TRAVIS_BRANCH is either the git tag or the branch name when no tag
105+
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
106+
- TRAVIS_TIMESTAMP=$(date +%s)
107+
- CCACHE_DIR=${HOME}/.ccache
108+
- DOCKER_DEBIAN_DISTRO=cosmic
109+
if: type=cron
110+
111+
112+
113+
72114
# OSX based build with QT4 and Python 2
73115
# - os: osx
74116
# osx_image: xcode8.3 # MacOS 10.12: Sierra

0 commit comments

Comments
 (0)