Skip to content

Commit de3c79b

Browse files
authored
Travis: do not cache tox dirs (pytest-dev#564)
Re-using an existing `.tox` dir will result in less informative error messages, e.g. when `python_requires` is broken [1]. 1: https://travis-ci.org/pytest-dev/pytest-django/jobs/310792370
1 parent a67ab3b commit de3c79b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.travis.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Use container-based environment (faster startup, allows caches).
21
sudo: false
32
language: python
43
dist: trusty
@@ -39,10 +38,6 @@ matrix:
3938
allow_failures:
4039
- env: TOXENV=py36-djmaster-postgres
4140

42-
cache:
43-
directories:
44-
- "${TRAVIS_BUILD_DIR}/.tox/${TOXENV}"
45-
4641
install:
4742
# Create pip wrapper script, using travis_retry (a function) and
4843
# inject it into tox.ini.
@@ -83,6 +78,3 @@ after_success:
8378
codecov --required -X search gcov pycov -f coverage.xml --flags $codecov_flags
8479
fi
8580
set +x
86-
87-
before_cache:
88-
- "find ${TRAVIS_BUILD_DIR}/.tox/${TOXENV} -name 'log' -o -name '__pycache__' -type d | xargs -I {} rm -rf {}"

0 commit comments

Comments
 (0)