Skip to content

Commit 4f9b581

Browse files
committed
Use travis_retry also for the tox command
This is a followup to 07b9147.
1 parent f767560 commit 4f9b581

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ matrix:
4040
- env: TESTENV=python3.4-master-postgres
4141
- env: TESTENV=python3.4-master-sqlite
4242
- env: TESTENV=python3.4-master-sqlite_file
43-
before_install:
44-
# Wrap "pip" with "travis_retry" to retry on network failures.
45-
- pip() { travis_retry command pip "$@"; }
4643
install:
47-
- pip install tox
48-
script: tox -e $TESTENV
44+
- travis_retry pip install tox
45+
script: travis_retry tox -e $TESTENV

generate_configurations.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,9 @@ def make_travis_yml(envs):
220220
matrix:
221221
allow_failures:
222222
%(allow_failures)s
223-
before_install:
224-
# Wrap "pip" with "travis_retry" to retry on network failures.
225-
- pip() { travis_retry command pip "$@"; }
226223
install:
227-
- pip install tox
228-
script: tox -e $TESTENV
224+
- travis_retry pip install tox
225+
script: travis_retry tox -e $TESTENV
229226
""").strip("\n")
230227
testenvs = '\n'.join(' - TESTENV=%s' % testenv_name(env) for env in envs)
231228
checkenvs = '\n'.join(' - TESTENV=checkqa-%s' %

0 commit comments

Comments
 (0)