File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -39,21 +39,25 @@ docker cp qgis_container:/usr/src/.ccache_image_build ${CCACHE_DIR}
39
39
docker rm qgis_container
40
40
popd
41
41
echo " Trigger build of PyQGIS Documentation"
42
- body=' {
43
- "request": {
44
- "branch":"master",
45
- "message": "Trigger PyQGIS doc build after release of new Docker image as __DOCKER_TAG__",
46
- "config": {
47
- "merge_mode": "deep_merge",
48
- "matrix": {
49
- "include": {
50
- "env": ["QGIS_VERSION_BRANCH=__QGIS_VERSION_BRANCH__"]
42
+ if [[ ${TRIGGER_PYQGIS_DOC} =~ ^TRUE$ ]]; then
43
+ body=' {
44
+ "request": {
45
+ "branch":"master",
46
+ "message": "Trigger PyQGIS doc build after release of new Docker image as __DOCKER_TAG__",
47
+ "config": {
48
+ "merge_mode": "deep_merge",
49
+ "matrix": {
50
+ "include": {
51
+ "env": ["QGIS_VERSION_BRANCH=__QGIS_VERSION_BRANCH__"]
52
+ }
51
53
}
52
54
}
53
55
}
54
- }
55
- }'
56
- body=$( sed " s/__QGIS_VERSION_BRANCH__/${TRAVIS_BRANCH} /; s/__DOCKER_TAG__/${DOCKER_TAG} /" <<< $body )
57
- curl -s -X POST -H " Content-Type: application/json" -H " Accept: application/json" \
58
- -H " Travis-API-Version: 3" -H " Authorization: token $TRAVIS_TOKEN " -d " $body " \
59
- https://api.travis-ci.org/repo/qgis%2Fpyqgis/requests
56
+ }'
57
+ body=$( sed " s/__QGIS_VERSION_BRANCH__/${TRAVIS_BRANCH} /; s/__DOCKER_TAG__/${DOCKER_TAG} /" <<< $body )
58
+ curl -s -X POST -H " Content-Type: application/json" -H " Accept: application/json" \
59
+ -H " Travis-API-Version: 3" -H " Authorization: token $TRAVIS_TOKEN " -d " $body " \
60
+ https://api.travis-ci.org/repo/qgis%2Fpyqgis/requests
61
+ else
62
+ echo " skipped from configuration"
63
+ fi
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ matrix:
102
102
env :
103
103
- TRAVIS_CONFIG=docker_image
104
104
- CCACHE_DIR=${HOME}/.ccache_docker_build_bionic
105
+ - TRIGGER_PYQGIS_DOC=FALSE
105
106
- DOCKER_TAG=$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )
106
107
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps.dockerfile
107
108
@@ -114,6 +115,7 @@ matrix:
114
115
env :
115
116
- TRAVIS_CONFIG=docker_image
116
117
- CCACHE_DIR=${HOME}/.ccache_docker_build_cosmic
118
+ - TRIGGER_PYQGIS_DOC=TRUE
117
119
- DOCKER_TAG="$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )_cosmic"
118
120
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps-cosmic.dockerfile
119
121
You can’t perform that action at this time.
0 commit comments