1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 18:54:29 +01:00

adding pep 8 checks in unit tests

This commit is contained in:
kakwa 2015-07-11 23:07:26 +02:00
parent 61bade4bd0
commit a5e7dc1a35

View File

@ -17,12 +17,19 @@ python:
# - "3.3" # - "3.3"
# command to install dependencies # command to install dependencies
install: install:
- pip install -e . --use-mirrors - pip install -e .
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi"
- pip install passlib - pip install passlib
- pip install coveralls - pip install coveralls
# command to run tests # command to run tests
script: script:
- coverage run --source=ldapcherry setup.py test - coverage run --source=ldapcherry setup.py test
- "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi"
script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc .; else coverage run --source=ldapcherry setup.py test; fi"
matrix:
include:
- python: "2.7"
env: TEST_PEP8=1
after_success: after_success:
- coveralls - coveralls
after_failure: after_failure: