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 @@ -105,6 +105,7 @@ matrix:
105
105
env :
106
106
- TRAVIS_CONFIG=docker_image
107
107
- CCACHE_DIR=${HOME}/.ccache_docker_build_bionic
108
+ - TRIGGER_PYQGIS_DOC=FALSE
108
109
- DOCKER_TAG=$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )
109
110
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps.dockerfile
110
111
@@ -118,6 +119,7 @@ matrix:
118
119
env :
119
120
- TRAVIS_CONFIG=docker_image
120
121
- CCACHE_DIR=${HOME}/.ccache_docker_build_cosmic
122
+ - TRIGGER_PYQGIS_DOC=TRUE
121
123
- DOCKER_TAG="$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )_cosmic"
122
124
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps-cosmic.dockerfile
123
125
You can’t perform that action at this time.
0 commit comments