Skip to content

Commit f65ee88

Browse files
blueyedtimb07
authored andcommitted
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 dc5f9e6 commit f65ee88

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
@@ -38,10 +37,6 @@ matrix:
3837
allow_failures:
3938
- env: TOXENV=py36-djmaster-postgres
4039

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

0 commit comments

Comments
 (0)