mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-24 02:14:20 +01:00
42 lines
1022 B
YAML
42 lines
1022 B
YAML
sudo: required
|
|
dist: xenial
|
|
language: python
|
|
|
|
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
|
|
|
|
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.6"
|
|
env:
|
|
TEST_PEP8=0
|
|
REQ_FILE=requirements.txt
|
|
|
|
after_success:
|
|
- coveralls
|
|
after_failure:
|
|
- sudo cat /var/log/syslog
|