diff options
author | Sorin Sbarnea <ssbarnea@users.noreply.github.com> | 2018-09-22 08:31:47 +0100 |
---|---|---|
committer | Bernát Gábor <gaborjbernat@gmail.com> | 2018-09-22 10:31:47 +0300 |
commit | c8e8029246d8bd8db82ddbfdfc7238940eb19102 (patch) | |
tree | 3f057bcf05a56ab047db7839ba972873c114b630 | |
parent | 79c9daceddc8bea249a4d92c009dece32a12dd68 (diff) | |
download | virtualenv-c8e8029246d8bd8db82ddbfdfc7238940eb19102.tar.gz |
travis: fail fast if rebuild-script was not called (#1194)
Avoid running tests if rebuild-script is making repository
dirty because this means that code was commited
without rebuilding first.
This prevents wasted time on reviews.
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 9aea51b..c024d35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,10 @@ matrix: - python: 2.7 env: TOXENV=docs -install: pip install tox +install: + # detecting invalid commits that missed rebuild-script. + - ./bin/rebuild-script.py && git diff-files --quiet || { >&2 echo "Code submitted without running ./bin/rebuild-script.py first."; exit 1; } + - pip install tox script: tox |