Merge pull request #213 from nephila/feature/travis_cache

Add travis cache
This commit is contained in:
Iacopo Spalletti 2016-02-27 10:09:40 +01:00
commit b980587b84
2 changed files with 11 additions and 4 deletions

View file

@ -28,7 +28,6 @@ env:
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -U tox>=1.8 coveralls
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then export PYVER=py26; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PYVER=py27; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then export PYVER=py33; fi"
@ -40,7 +39,7 @@ install:
script: COMMAND='coverage run' tox -e$TOXENV
before_install:
- pip install codecov
- pip install -U tox>=1.8 coveralls codecov wheel pip
after_success:
- codecov
- coveralls
@ -89,3 +88,11 @@ matrix:
env: DJANGO='django17' CMS='cms31'
- python: 3.5
env: DJANGO='django17' CMS='cms32'
cache:
directories:
- $HOME/.pip-accel
- $HOME/.cache/pip

View file

@ -1,10 +1,9 @@
[tox]
envlist = pep8,isort,py{35,34,33,27}-django{19,18}-cms{32,31},py{34,33,27}-django{17,16}-cms{32,31,30},py{26}-django16-cms{31,30}
envlist = pep8,isort,py{35,34,27}-django{19}-cms{32},py{35,34,33,27}-django{18}-cms{32,31},py{34,33,27}-django{17,16}-cms{32,31,30},py{26}-django16-cms{31,30}
[testenv]
commands = {env:COMMAND:python} cms_helper.py test djangocms_blog --no-migrate
deps =
-r{toxinidir}/requirements-test.txt
django16: Django>=1.6,<1.7
django16: django-taggit<0.18
django16: django-mptt<0.8
@ -24,6 +23,7 @@ deps =
py26: unittest2
https://github.com/aldryn/aldryn-apphooks-config/archive/master.zip
https://github.com/nephila/djangocms-apphook-setup/archive/master.zip
-r{toxinidir}/requirements-test.txt
[testenv:isort]
deps = isort