Commit 2b6be394 authored by Jason Madden's avatar Jason Madden

Try caching at the tox level.

parent cfc9ccc2
...@@ -8,15 +8,22 @@ env: ...@@ -8,15 +8,22 @@ env:
- TOXENV=py33 - TOXENV=py33
- TOXENV=py34 - TOXENV=py34
install: install:
- travis_retry pip install -U pip tox # First install a newer pip so that it can use the wheel cache
# We only have a few files to compile, so not compiling cython itself # (only needed until travis upgrades pip to 7.x)
# makes the overall build much faster. - travis_retry pip install -U pip
- travis_retry pip install --install-option='--no-cython-compile' cython # Then start installing our deps. Note that use of --build-options / --global-options / --install-options
# disables the cache.
# XXX: This may be useless; our environment based test matrix means these commands all
# run with the same python version.
- travis_retry pip install -U tox cython greenlet
script: script:
# Try to use the site packages of cython we just installed # Try to use the site packages of cython we just installed. Also use development mode
# so that our actual source is not included in the cache (because it changes all the time
# the cache would be useless).
- tox --sitepackages --develop - tox --sitepackages --develop
notifications: notifications:
email: false email: false
cache: cache:
directories: directories:
- $HOME/.cache/pip - $HOME/.cache/pip
- $HOME/build/gevent/gevent/.tox
...@@ -5,7 +5,7 @@ envlist = ...@@ -5,7 +5,7 @@ envlist =
[testenv] [testenv]
deps = deps =
greenlet greenlet
# cython cython
whitelist_externals = whitelist_externals =
* *
commands = commands =
......
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