mirror of
https://github.com/tc39/test262.git
synced 2025-05-19 14:20:31 +02:00
This script is intended to identify common test file formatting errors prior to their acceptance into the project. It is designed to support future extensions for additional validation rules.
12 lines
406 B
Bash
Executable File
12 lines
406 B
Bash
Executable File
#!/bin/sh
|
|
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
|
|
./make.py clean
|
|
fi
|
|
./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
|