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: ...@@ -9,10 +9,25 @@ python:
- 3.3 - 3.3
- 3.4 - 3.4
install: install:
- travis_retry pip install BTrees ZConfig manuel persistent six transaction zc.lockfile zdaemon zodbpickle zope.interface zope.testing zope.testrunner # First install a newer pip so that it can use the wheel cache
- travis_retry pip install -e . # (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: script:
- zope-testrunner -u --test-path=src --auto-color --auto-progress - zope-testrunner -u --test-path=src --auto-color --auto-progress
- zope-testrunner -f --test-path=src --auto-color --auto-progress - zope-testrunner -f --test-path=src --auto-color --auto-progress
notifications: notifications:
email: false 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 = ...@@ -12,16 +12,7 @@ commands =
zope-testrunner -f --test-path=src --auto-color --auto-progress zope-testrunner -f --test-path=src --auto-color --auto-progress
# without explicit deps, setup.py test will download a bunch of eggs into $PWD # without explicit deps, setup.py test will download a bunch of eggs into $PWD
deps = deps =
BTrees
ZConfig
manuel manuel
persistent
six
transaction
zc.lockfile
zdaemon
zodbpickle
zope.interface
zope.testing zope.testing
zope.testrunner >= 4.4.6 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