Cache tox build on travis to seed up tests
This commit is contained in:
parent
8ab40271bc
commit
9814bb0a6f
@ -16,6 +16,7 @@ env:
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.pip-cache/
|
- $HOME/.pip-cache/
|
||||||
|
- $HOME/build/nitmir/django-cas-server/.tox/
|
||||||
install:
|
install:
|
||||||
- "travis_retry pip install setuptools --upgrade"
|
- "travis_retry pip install setuptools --upgrade"
|
||||||
- "pip install tox"
|
- "pip install tox"
|
||||||
|
7
tox.ini
7
tox.ini
@ -15,9 +15,11 @@ exclude=migrations
|
|||||||
[base]
|
[base]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements-dev.txt
|
-r{toxinidir}/requirements-dev.txt
|
||||||
|
passenv=PIP_DOWNLOAD_CACHE
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands=py.test {posargs:cas_server/tests/}
|
commands=py.test {posargs:cas_server/tests/}
|
||||||
|
passenv={[base]passenv}
|
||||||
|
|
||||||
[testenv:py27-django17]
|
[testenv:py27-django17]
|
||||||
basepython=python2.7
|
basepython=python2.7
|
||||||
@ -59,10 +61,13 @@ deps =
|
|||||||
basepython=python
|
basepython=python
|
||||||
deps=flake8
|
deps=flake8
|
||||||
commands=flake8 {toxinidir}/cas_server
|
commands=flake8 {toxinidir}/cas_server
|
||||||
|
passenv={[base]passenv}
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
basepython=python
|
basepython=python
|
||||||
passenv=CODACY_PROJECT_TOKEN
|
passenv=
|
||||||
|
CODACY_PROJECT_TOKEN
|
||||||
|
{[base]passenv}
|
||||||
deps=
|
deps=
|
||||||
-r{toxinidir}/requirements-dev.txt
|
-r{toxinidir}/requirements-dev.txt
|
||||||
codacy-coverage
|
codacy-coverage
|
||||||
|
Loading…
Reference in New Issue
Block a user