sudo: required dist: xenial language: python #env: # - TRAVIS="yes" before_install: - '[ "$TEST_PEP8" == "1" ] || sudo ./tests/test_env/deploy.sh' install: - pip install -e -r $REQ_FILE - "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 .; else coverage run --source=ldapcherry setup.py test; fi" matrix: include: - python: "2.7" env: TEST_PEP8=1 REQ_FILE=requirements.txt - python: "2.7" env: TEST_PEP8=0 REQ_FILE=requirements-el7.txt - python: "2.7" env: TEST_PEP8=0 REQ_FILE=requirements-stretch.txt - python: "2.7" env: TEST_PEP8=0 REQ_FILE=requirements.txt - python: "3.4" env: TEST_PEP8=0 REQ_FILE=requirements-el7.txt - python: "3.5" env: TEST_PEP8=0 REQ_FILE=requirements-stretch.txt - python: "3.6" env: TEST_PEP8=0 REQ_FILE=requirements.txt after_success: - coveralls after_failure: - sudo cat /var/log/syslog