Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d125738

Browse files
authored
[3.6] 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. (cherry picked from commit c53b13b)
1 parent ce40550 commit d125738

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ matrix:
4545
env: OPTIONAL=true
4646
before_script:
4747
- |
48-
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
48+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
4949
then
5050
echo "Only docs were updated, stopping build process."
5151
exit
@@ -57,16 +57,16 @@ matrix:
5757
./venv/bin/python -m pip install -U coverage
5858
script:
5959
# Skip tests that re-run the entire test suite.
60-
- ./venv/bin/python -m coverage run --pylib -m test -uall -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
60+
- ./venv/bin/python -m coverage run --pylib -m test -uall,-cpu,-tzdata -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
6161
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
6262
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
6363
- source ./venv/bin/activate
6464
- bash <(curl -s https://codecov.io/bash)
6565

66-
# Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
66+
# Travis provides only 2 cores, so don't overdo the parallelism and waste memory.
6767
before_script:
6868
- |
69-
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(rst|yml)$)|(^Doc)/'
69+
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.rst$)|(^Doc)|(^Misc)'
7070
then
7171
echo "Only docs were updated, stopping build process."
7272
exit
@@ -76,7 +76,7 @@ before_script:
7676
7777
script:
7878
# `-r -w` implicitly provided through `make buildbottest`.
79-
- make buildbottest TESTOPTS="-j4"
79+
- make buildbottest TESTOPTS="-j4 -uall,-cpu,-tzdata"
8080

8181
notifications:
8282
email: false

0 commit comments

Comments
 (0)