Skip to content

Commit

Permalink
Update Travis to check for changes after regenerating tests (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
leobalter authored Apr 11, 2017
1 parent 5424c81 commit 4dbd704
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 4dbd704

Please sign in to comment.