Skip to content
Permalink
Browse files

fix Travis build trigger

  • Loading branch information
3nids committed Mar 5, 2019
1 parent ec13393 commit d81d7f9a5e64f6430c880d2d2ebb6f89247b3bc1
Showing with 12 additions and 9 deletions.
  1. +12 −9 .ci/travis/linux/script.sh
@@ -38,18 +38,21 @@ if [[ ${DOCKER_BUILD_QGIS_IMAGE} =~ true ]]; then
docker cp ${container_id}:/usr/src/QGIS/.ccache_image_build ${CCACHE_DIR_IMAGE_BUILD}
popd
echo "Trigger build of PyQGIS Documentation"
body="{
'request': {
'branch':'master',
'message': 'Trigger PyQGIS doc build after release of new Docker image as ${DOCKER_TAG}',
'config': {
'merge_mode': 'deep_merge',
'env': {
'global': ['QGIS_VERSION_BRANCH=${TRAVIS_BRANCH}']
body='{
"request": {
"branch":"master",
"message": "Trigger PyQGIS doc build after release of new Docker image as __DOCKER_TAG__",
"config": {
"merge_mode": "deep_merge",
"matrix": {
"include": {
"env": ["QGIS_VERSION_BRANCH=__QGIS_VERSION_BRANCH__"]
}
}
}
}
}"
}'
body=$(sed "s/__QGIS_VERSION_BRANCH__/${TRAVIS_BRANCH}/; s/__DOCKER_TAG__/${DOCKER_TAG}/" <<< $body)
curl -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" \
-H "Travis-API-Version: 3" -H "Authorization: token $TRAVIS_TOKEN" -d "$body" \
https://api.travis-ci.org/repo/qgis%2Fpyqgis/requests

0 comments on commit d81d7f9

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