]> granicus.if.org Git - python/commitdiff
[2.7] bpo-30417: Disable 'cpu' resource on Travis (GH-1928)
authorZachary Ware <zachary.ware@gmail.com>
Tue, 6 Jun 2017 01:03:05 +0000 (20:03 -0500)
committerGitHub <noreply@github.com>
Tue, 6 Jun 2017 01:03:05 +0000 (20:03 -0500)
Also weakens the 'should this be run?' regex to allow all builds when .travis.yml changes.
(cherry picked from commit c53b13b270767948fddb58b287149c499f9a03c4)

.travis.yml

index 5bb4ce6f365b76d4b8c57f59bba9f6fa16f11e7c..9673254828020c12f507374038747c0cc6d61626 100644 (file)
@@ -40,10 +40,10 @@ matrix:
       script:
         - make check suspicious html SPHINXOPTS="-q -W -j4"
 
-# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
+# Travis provides only 2 cores, so don't overdo 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$)|(^Doc)'
       then
         echo "Only docs were updated, stopping build process."
         exit
@@ -53,7 +53,7 @@ before_script:
 
 script:
   # `-r -w` implicitly provided through `make buildbottest`.
-  - make buildbottest TESTOPTS="-j4"
+  - make buildbottest TESTOPTS="-j4 -uall,-cpu"
 
 notifications:
   email: false