2017-04-11 20:00:07 +02:00
|
|
|
#!/bin/sh
|
2018-10-15 17:02:51 +02:00
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
2017-08-23 19:45:33 +02:00
|
|
|
./make.py clean > /dev/null
|
2017-04-11 20:00:07 +02:00
|
|
|
fi
|
|
|
|
./make.py
|
2018-10-15 17:02:51 +02:00
|
|
|
if [ -n "$(git status --porcelain)" -a "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
2017-04-11 20:00:07 +02:00
|
|
|
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
|