Commit 0df3ab79 authored by Jason Madden's avatar Jason Madden

Cleanup tox.ini and .travis.yml as mentioned in #42

- (Both) Remove repetition of deps. Only install tests_require deps
  explicitly. The previous comment in tox.ini about eggs in the
  working directory doesn't apply, per @mgedmin.
- Setup Travis to use the local wheel cache for faster install times.
parent deb100be
......@@ -9,10 +9,25 @@ python:
- 3.3
- 3.4
install:
- travis_retry pip install BTrees ZConfig manuel persistent six transaction zc.lockfile zdaemon zodbpickle zope.interface zope.testing zope.testrunner
- travis_retry pip install -e .
# First install a newer pip so that it can use the wheel cache
# (only needed until travis upgrades pip to 7.x; note that the 3.5
# environment uses pip 7.1 by default).
- travis_retry pip install -U pip
# A newer wheel is also needed under Python 3, but only after we have
# a newer pip to take advantage of the cache.
- travis_retry pip install -U wheel
# Then start installing our deps so they can be cached. Note that use of --build-options / --global-options / --install-options
# disables the cache.
- travis_retry pip install -U manuel zope.testing zope.testrunner
- travis_retry pip install -U -e .
script:
- zope-testrunner -u --test-path=src --auto-color --auto-progress
- zope-testrunner -f --test-path=src --auto-color --auto-progress
notifications:
email: false
# cache: pip seems not to work if `install` is replaced (https://github.com/travis-ci/travis-ci/issues/3239)
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
......@@ -12,16 +12,7 @@ commands =
zope-testrunner -f --test-path=src --auto-color --auto-progress
# without explicit deps, setup.py test will download a bunch of eggs into $PWD
deps =
BTrees
ZConfig
manuel
persistent
six
transaction
zc.lockfile
zdaemon
zodbpickle
zope.interface
zope.testing
zope.testrunner >= 4.4.6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment