2018-08-24 16:19:30 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
# -e = exit when one command returns != 0, -v print each command before executing
|
|
|
|
set -ev
|
|
|
|
|
2018-08-24 21:24:38 +02:00
|
|
|
# early exit when pull request || when not master
|
2018-08-24 20:29:35 +02:00
|
|
|
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] || [ "${TRAVIS_BRANCH}" != "master" ]; then
|
2018-08-24 18:34:13 +02:00
|
|
|
exit 0;
|
|
|
|
fi
|
2018-08-24 17:08:00 +02:00
|
|
|
|
2018-08-24 18:34:13 +02:00
|
|
|
# trigger build for calendar
|
2018-08-24 21:24:38 +02:00
|
|
|
curl -s -X POST \
|
2018-08-24 18:34:13 +02:00
|
|
|
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":{"merge_mode":"deep_merge","env":{"matrix":["HUMHUB_VERSION=master"]}}}}'
|