@@ -10,27 +10,37 @@ cache:
10
10
- $HOME/.ccache
11
11
timeout : 1000
12
12
13
+ global :
14
+ env :
15
+ - TRAVIS_TIMESTAMP=$(date +%s)
16
+ - CCACHE_DIR=${HOME}/.ccache
17
+
13
18
matrix :
14
19
fast_finish : true
15
20
include :
21
+
22
+ # #########################################################
23
+ #
24
+ # TESTS FOR STANDARD COMMITS
25
+ #
26
+ # #########################################################
27
+
16
28
# #########################################################
17
29
# QGIS TESTS ON BIONIC
18
30
# #########################################################
19
31
- os : linux
32
+ if : type != cron
20
33
services : docker
21
34
env :
22
35
- TRAVIS_CONFIG=linux
23
- - DOCKER_COMPOSE=${TRAVIS_BUILD_DIR}/.docker/docker-compose.travis.yml
24
- # TRAVIS_BRANCH is either the git tag or the branch name when no tag
25
36
- DOCKER_TAG=$( [[ $TRAVIS_REPO_SLUG =~ qgis/QGIS ]] && echo $TRAVIS_BRANCH | sed 's/master/latest/' || echo "latest" )
26
- - TRAVIS_TIMESTAMP=$(date +%s)
27
- - CCACHE_DIR=${HOME}/.ccache
28
- if : type!=cron
37
+ - DOCKER_BUILD_QGIS_IMAGE=false
29
38
30
39
# #########################################################
31
40
# CODE LAYOUT
32
41
# #########################################################
33
-
42
+ - os : linux
43
+ if : type != cron
34
44
env :
35
45
- TRAVIS_CONFIG=code_layout
36
46
addons :
@@ -68,46 +78,36 @@ matrix:
68
78
69
79
70
80
71
- # #########################################################
72
- #
73
- # DOCKER IMAGE BUILD JOBS ON CRON
74
- #
75
- # #########################################################
76
-
77
-
78
-
81
+ # #########################################################
82
+ #
83
+ # DOCKER IMAGE BUILD JOBS ON CRON OR TAG
84
+ #
85
+ # #########################################################
79
86
80
87
81
88
# #########################################################
82
- # BIONIC DOCKER BUILD ON CRON
89
+ # BIONIC DOCKER BUILD ON CRON OR TAG
83
90
# #########################################################
84
91
- os : linux
92
+ if : repo = qgis/QGIS AND (tag IS PRESENT OR type = cron)
85
93
services : docker
86
94
env :
87
95
- 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
96
+ - DOCKER_TAG=$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )
93
97
- DOCKER_DEBIAN_DISTRO=bionic
94
- if : type=cron
98
+ - DOCKER_BUILD_QGIS_IMAGE=true
95
99
96
100
# #########################################################
97
- # COSMIC DOCKER BUILD ON CRON
101
+ # COSMIC DOCKER BUILD ON CRON OR TAG
98
102
# #########################################################
99
103
- os : linux
104
+ if : repo = qgis/QGIS AND (tag IS PRESENT OR type = cron)
100
105
services : docker
101
106
env :
102
107
- 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_TAG=$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )
108
109
- DOCKER_DEBIAN_DISTRO=cosmic
109
- if : type=cron
110
-
110
+ - DOCKER_BUILD_QGIS_IMAGE=true
111
111
112
112
113
113
@@ -134,7 +134,6 @@ notifications:
134
134
on_success : change
135
135
skip_join : true
136
136
137
- notifications :
138
137
webhooks :
139
138
urls :
140
139
- https://webhooks.gitter.im/e/467e3aff72e344d1dae3
@@ -153,6 +152,3 @@ before_script:
153
152
154
153
script :
155
154
- ./.ci/travis/${TRAVIS_CONFIG}/script.sh
156
-
157
- after_script :
158
- - ./.ci/travis/${TRAVIS_CONFIG}/after_script.sh
0 commit comments