Skip to content
Snippets Groups Projects
Commit 4dbd7049 authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

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

parent 5424c811
No related branches found
No related tags found
No related merge requests found
language: python language: python
install: pip install pyyaml install: pip install pyyaml
script: ./make.py script: |
after_success: | 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 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 This job is not running against a commit that has been merged to master.
echo Skipping deployment. echo Skipping deployment.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment