summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2017-06-05 18:42:17 -0500
committerGitHub <noreply@github.com>2017-06-05 18:42:17 -0500
commitc53b13b270767948fddb58b287149c499f9a03c4 (patch)
tree56c5bf0a85c92b676d3e649ed40b571d0e93c0ed /.travis.yml
parente6a23c8f9a3ce05b759599696cc131c2d9d147ac (diff)
downloadcpython-git-c53b13b270767948fddb58b287149c499f9a03c4.tar.gz
bpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928)
Also weakens the 'should this be run?' regex to allow all builds when .travis.yml changes.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index a92b1e4eb8..a549d4711b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,7 +46,7 @@ matrix:
env: OPTIONAL=true
before_script:
- |
- if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)|(^Misc)/'
+ if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
then
echo "Only docs were updated, stopping build process."
exit
@@ -58,16 +58,16 @@ matrix:
./venv/bin/python -m pip install -U coverage
script:
# Skip tests that re-run the entire test suite.
- - ./venv/bin/python -m coverage run --pylib -m test -uall -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
+ - ./venv/bin/python -m coverage run --pylib -m test -uall,-cpu,-tzdata -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
- source ./venv/bin/activate
- bash <(curl -s https://codecov.io/bash)
-# 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)|(^Misc)/'
+ if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
then
echo "Only docs were updated, stopping build process."
exit
@@ -77,7 +77,7 @@ before_script:
script:
# `-r -w` implicitly provided through `make buildbottest`.
- - make buildbottest TESTOPTS="-j4"
+ - make buildbottest TESTOPTS="-j4 -uall,-cpu,-tzdata"
notifications:
email: false