bpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928) · python/cpython@c53b13b (original) (raw)

Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ matrix:
46 46 env: OPTIONAL=true
47 47 before_script:
48 48 - |
49 - if ! git diff --name-only TRAVISCOMMITRANGE∥grep−qvE′(.(rst∣yml)TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst
49 + if ! git diff --name-only TRAVISCOMMITRANGE∥grep−qvE′(.rstTRAVIS_COMMIT_RANGE | grep -qvE '(\.rstTRAVISCOMMITRANGEgrepqvE(.rst)
50 50 then
51 51 echo "Only docs were updated, stopping build process."
52 52 exit
@@ -58,16 +58,16 @@ matrix:
58 58 ./venv/bin/python -m pip install -U coverage
59 59 script:
60 60 # Skip tests that re-run the entire test suite.
61 - - ./venv/bin/python -m coverage run --pylib -m test -uall -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
61 + - ./venv/bin/python -m coverage run --pylib -m test -uall,-cpu,-tzdata -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
62 62 after_script: # Probably should be after_success once test suite updated to run under coverage.py.
63 63 # Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
64 64 - source ./venv/bin/activate
65 65 - bash <(curl -s https://codecov.io/bash)
66 66
67 -# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
67 +# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
68 68 before_script:
69 69 - |
70 - if ! git diff --name-only TRAVISCOMMITRANGE∥grep−qvE′(.(rst∣yml)TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst
70 + if ! git diff --name-only TRAVISCOMMITRANGE∥grep−qvE′(.rstTRAVIS_COMMIT_RANGE | grep -qvE '(\.rstTRAVISCOMMITRANGEgrepqvE(.rst)
71 71 then
72 72 echo "Only docs were updated, stopping build process."
73 73 exit
@@ -77,7 +77,7 @@ before_script:
77 77
78 78 script:
79 79 # `-r -w` implicitly provided through `make buildbottest`.
80 - - make buildbottest TESTOPTS="-j4"
80 + - make buildbottest TESTOPTS="-j4 -uall,-cpu,-tzdata"
81 81
82 82 notifications:
83 83 email: false