]> granicus.if.org Git - python/commitdiff
Exit Travis when only Misc/* is changed. (#564)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 8 Mar 2017 18:22:16 +0000 (20:22 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Mar 2017 18:22:16 +0000 (20:22 +0200)
No need to wait passing tests after resolving Misc/NEWS conflicts.

.travis.yml

index 27b63c6c08b37645d38c029a961bac2a0bd7ab68..6c0b73ddc211a47e8d852e93508fe46d12574d11 100644 (file)
@@ -47,7 +47,7 @@ matrix:
         - TESTING=coverage
       before_script:
         - |
-            if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
+            if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)|(^Misc)/'
             then
               echo "Only docs were updated, stopping build process."
               exit
@@ -77,7 +77,7 @@ matrix:
 # Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
 before_script:
   - |
-      if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
+      if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)|(^Misc)/'
       then
         echo "Only docs were updated, stopping build process."
         exit