diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2017-04-11 13:09:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-11 13:09:18 -0400 |
commit | 4dbd704904cdb98898d47ecf24ad560e47a84fcc (patch) | |
tree | eae19e5e5ef2f4f77130d2746b7e903648bf66fc /.travis.yml | |
parent | 5424c811845e4abd79e9db7a2fe0ac0ac8ee08c0 (diff) | |
download | qtdeclarative-testsuites-4dbd704904cdb98898d47ecf24ad560e47a84fcc.tar.gz |
Update Travis to check for changes after regenerating tests (#965)
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 7abb58118..e53ac1328 100644 --- a/.travis.yml +++ b/.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. |