mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +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
|
||||
cd ${TRAVIS_BUILD_DIR}
|
||||
|
||||
curl -X POST \
|
||||
https://api.travis-ci.org/repo/humhub%2Fhumhub-modules-calendar/requests \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Authorization: token '${AUTH_TOKEN} \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Travis-API-Version: 3' \
|
||||
-d '{"request": {"branch": "master"}}'
|
||||
# build only when branch master and no pull request
|
||||
if [ ${TRAVIS_BRANCH} = "master" ] && [ ${TRAVIS_PULL_REQUEST} = "false" ]; then
|
||||
|
||||
# trigger build for calendar
|
||||
curl -X POST \
|
||||
https://api.travis-ci.org/repo/humhub%2Fhumhub-modules-calendar/requests \
|
||||
-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