2017-04-11 20:00:07 +02:00
|
|
|
#!/bin/sh
|
2019-03-21 02:04:41 +01:00
|
|
|
if [ "$CIRCLE_PULL_REQUEST" != "" ]; 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
|
2020-09-25 15:21:09 +02:00
|
|
|
|
2019-03-21 02:04:41 +01:00
|
|
|
if [ -n "$(git status --porcelain)" -a "$CIRCLE_PULL_REQUEST" != "" ]; then
|
2017-04-11 20:00:07 +02:00
|
|
|
echo New changes were found after re-generating the tests.
|
2020-09-25 15:21:09 +02:00
|
|
|
echo ""
|
|
|
|
git status --porcelain;
|
|
|
|
echo ""
|
|
|
|
git diff;
|
|
|
|
echo ""
|
2017-04-11 20:00:07 +02:00
|
|
|
echo Please, read the documentation on procedurally generated tests
|
2020-07-15 20:53:19 +02:00
|
|
|
echo 'https://github.com/tc39/test262/blob/HEAD/CONTRIBUTING.md#procedurally-generated-tests'
|
2017-04-11 20:00:07 +02:00
|
|
|
exit 1
|
|
|
|
fi
|