Update Travis to check for changes after regenerating tests (#965)

This commit is contained in:
Leo Balter 2017-04-11 13:09:18 -04:00 committed by GitHub
parent 5424c81184
commit 4dbd704904
1 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,18 @@
language: python
install: pip install pyyaml
script: ./make.py
after_success: |
script: |
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
./make.py clean
fi
echo "PULL_REQUEST: '${TRAVIS_PULL_REQUEST}'"
./make.py
if [ -n "$(git status --porcelain)" -a $TRAVIS_PULL_REQUEST != "false" ]; then
echo New changes were found after re-generating the tests.
echo Please, read the documentation on procedurally generated tests
echo 'https://github.com/tc39/test262/blob/master/CONTRIBUTING.md#procedurally-generated-tests'
exit 1
fi
deploy: |
if [ $TRAVIS_EVENT_TYPE != "push" -o $TRAVIS_BRANCH != "master" ]; then
echo This job is not running against a commit that has been merged to master.
echo Skipping deployment.