1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00
ldapcherry/.travis.yml
2019-02-07 20:41:22 +01:00

39 lines
917 B
YAML

sudo: required
dist: xenial
language: python
#env:
# - TRAVIS="yes"
before_install:
- '[ "$TEST_PEP8" == "1" ] || sudo ./tests/test_env/deploy.sh'
install:
- pip install -e .
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pycodestyle; fi"
- pip install passlib
- pip install coveralls
# command to run tests
#
#script:
# - coverage run --source=ldapcherry setup.py test
script: "if [[ $TEST_PEP8 == '1' ]]; then pycodestyle --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc,setup.py . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi"
matrix:
include:
- python: "2.7"
env: TEST_PEP8=1
- python: "2.7"
env: TEST_PEP8=0
- python: "3.5"
env: TEST_PEP8=0
- python: "3.6"
env: TEST_PEP8=0
- python: "3.4"
env: TEST_PEP8=0
after_success:
- coveralls
after_failure:
- sudo cat /var/log/syslog