mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Only trigger build for master / pr = false and set matrix to master
This commit is contained in:
parent
7f8290ae33
commit
422e6a6d9e
@ -6,10 +6,16 @@ set -ev
|
|||||||
# change to build directory
|
# change to build directory
|
||||||
cd ${TRAVIS_BUILD_DIR}
|
cd ${TRAVIS_BUILD_DIR}
|
||||||
|
|
||||||
curl -X POST \
|
# build only when branch master and no pull request
|
||||||
https://api.travis-ci.org/repo/humhub%2Fhumhub-modules-calendar/requests \
|
if [ ${TRAVIS_BRANCH} = "master" ] && [ ${TRAVIS_PULL_REQUEST} = "false" ]; then
|
||||||
-H 'Accept: application/json' \
|
|
||||||
-H 'Authorization: token '${AUTH_TOKEN} \
|
# trigger build for calendar
|
||||||
-H 'Content-Type: application/json' \
|
curl -X POST \
|
||||||
-H 'Travis-API-Version: 3' \
|
https://api.travis-ci.org/repo/humhub%2Fhumhub-modules-calendar/requests \
|
||||||
-d '{"request": {"branch": "master"}}'
|
-H 'Accept: application/json' \
|
||||||
|
-H 'Authorization: token '${AUTH_TOKEN} \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-H 'Travis-API-Version: 3' \
|
||||||
|
-d '{"request":{"branch":"master","config":{"env":{"matrix":["HUMHUB_VERSION=master"]}}}}'
|
||||||
|
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user