Make PRs fail when submitted for master branch (#5567)

This commit is contained in:
Michał Janiszewski 2017-06-08 00:09:55 +02:00 committed by GitHub
parent ff9417f4a6
commit 91075fce41
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
language: c
before_install:
- if [[ $TRAVIS_REPO_SLUG == "OpenRCT2/OpenRCT2" ]] && [[ $TRAVIS_PULL_REQUEST != "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "Pull requests to master branch are not allowed!" ; exit 1 ; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then bash scripts/linux/install.sh; export OPENRCT_MAKE_OPTS="-j2 -k all openrct2-cli" ; fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then sudo gem install xcpretty-travis-formatter; fi