Merge branch 'master' into federate
This commit is contained in:
commit
40b4f07001
3 changed files with 31 additions and 8 deletions
|
@ -14,12 +14,12 @@ env:
|
||||||
- TOX_ENV=py34-django19
|
- TOX_ENV=py34-django19
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip/
|
- $HOME/.cache/pip/http/
|
||||||
- $HOME/build/nitmir/django-cas-server/.tox/
|
- $HOME/build/nitmir/django-cas-server/.tox/$TOX_ENV/
|
||||||
install:
|
install:
|
||||||
- "travis_retry pip install setuptools --upgrade"
|
- "travis_retry pip install setuptools --upgrade"
|
||||||
- "pip install tox"
|
- "pip install tox"
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- tox -e $TOX_ENV
|
||||||
after_script:
|
after_script:
|
||||||
- cat .tox/$TOX_ENV/log/*.log
|
- cat tox_log/*.log
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -17,7 +17,7 @@ clean_pyc:
|
||||||
clean_build:
|
clean_build:
|
||||||
rm -rf build django_cas_server.egg-info dist
|
rm -rf build django_cas_server.egg-info dist
|
||||||
clean_tox:
|
clean_tox:
|
||||||
rm -rf .tox
|
rm -rf .tox tox_logs
|
||||||
clean_test_venv:
|
clean_test_venv:
|
||||||
rm -rf test_venv
|
rm -rf test_venv
|
||||||
clean_coverage:
|
clean_coverage:
|
||||||
|
|
31
tox.ini
31
tox.ini
|
@ -17,8 +17,21 @@ exclude=migrations
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements-dev.txt
|
-r{toxinidir}/requirements-dev.txt
|
||||||
|
|
||||||
|
[post_cmd]
|
||||||
|
commands=
|
||||||
|
find {toxworkdir} -name '*.pyc' -delete
|
||||||
|
mkdir -p {toxinidir}/tox_logs/
|
||||||
|
bash -c "mv {toxworkdir}/{envname}/log/* {toxinidir}/tox_logs/"
|
||||||
|
whitelist_externals=
|
||||||
|
find
|
||||||
|
bash
|
||||||
|
mkdir
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands=py.test {posargs:cas_server/tests/}
|
commands=
|
||||||
|
py.test {posargs:cas_server/tests/}
|
||||||
|
{[post_cmd]commands}
|
||||||
|
whitelist_externals={[post_cmd]whitelist_externals}
|
||||||
|
|
||||||
[testenv:py27-django17]
|
[testenv:py27-django17]
|
||||||
basepython=python2.7
|
basepython=python2.7
|
||||||
|
@ -59,14 +72,22 @@ deps =
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython=python
|
basepython=python
|
||||||
deps=flake8
|
deps=flake8
|
||||||
commands=flake8 {toxinidir}/cas_server
|
skip_install=True
|
||||||
|
commands=
|
||||||
|
flake8 {toxinidir}/cas_server
|
||||||
|
{[post_cmd]commands}
|
||||||
|
whitelist_externals={[post_cmd]whitelist_externals}
|
||||||
|
|
||||||
[testenv:check_rst]
|
[testenv:check_rst]
|
||||||
basepython=python
|
basepython=python
|
||||||
deps=
|
deps=
|
||||||
docutils
|
docutils
|
||||||
Pygments
|
Pygments
|
||||||
commands=rst2html.py --strict {toxinidir}/README.rst /dev/null
|
skip_install=True
|
||||||
|
commands=
|
||||||
|
rst2html.py --strict {toxinidir}/README.rst /dev/null
|
||||||
|
{[post_cmd]commands}
|
||||||
|
whitelist_externals={[post_cmd]whitelist_externals}
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
basepython=python
|
basepython=python
|
||||||
|
@ -74,7 +95,9 @@ passenv=CODACY_PROJECT_TOKEN
|
||||||
deps=
|
deps=
|
||||||
-r{toxinidir}/requirements-dev.txt
|
-r{toxinidir}/requirements-dev.txt
|
||||||
codacy-coverage
|
codacy-coverage
|
||||||
|
skip_install=True
|
||||||
commands=
|
commands=
|
||||||
py.test --cov=cas_server --cov-report xml
|
py.test --cov=cas_server --cov-report xml
|
||||||
python-codacy-coverage -r {toxinidir}/coverage.xml
|
python-codacy-coverage -r {toxinidir}/coverage.xml
|
||||||
|
{[post_cmd]commands}
|
||||||
|
whitelist_externals={[post_cmd]whitelist_externals}
|
||||||
|
|
Loading…
Reference in a new issue