mirror of https://github.com/tc39/test262.git
Update Travis to check for changes after regenerating tests (#965)
This commit is contained in:
parent
5424c81184
commit
4dbd704904
15
.travis.yml
15
.travis.yml
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue