mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
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
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user