2016-06-17 00:15:14 +02:00
|
|
|
sudo: required
|
2019-02-07 20:40:22 +01:00
|
|
|
dist: xenial
|
2016-06-17 00:15:14 +02:00
|
|
|
language: python
|
|
|
|
|
2015-04-14 16:04:33 +02:00
|
|
|
before_install:
|
2015-10-20 23:01:20 +02:00
|
|
|
- '[ "$TEST_PEP8" == "1" ] || sudo ./tests/test_env/deploy.sh'
|
2015-04-14 16:04:33 +02:00
|
|
|
|
|
|
|
install:
|
2019-02-07 22:12:49 +01:00
|
|
|
- "pip install -e . -r $REQ_FILE"
|
2019-02-07 20:34:49 +01:00
|
|
|
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pycodestyle; fi"
|
2015-04-14 16:04:33 +02:00
|
|
|
- pip install passlib
|
2015-05-17 00:04:46 +02:00
|
|
|
- pip install coveralls
|
2016-06-17 00:15:14 +02:00
|
|
|
|
2019-02-07 21:07:36 +01:00
|
|
|
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"
|
2015-07-11 23:07:26 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python: "2.7"
|
2019-02-07 22:07:28 +01:00
|
|
|
env:
|
|
|
|
TEST_PEP8=1
|
|
|
|
REQ_FILE=requirements.txt
|
2019-02-07 20:34:49 +01:00
|
|
|
- python: "2.7"
|
2019-02-07 22:07:28 +01:00
|
|
|
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
|
2019-02-07 20:34:49 +01:00
|
|
|
- python: "3.6"
|
2019-02-07 22:07:28 +01:00
|
|
|
env:
|
|
|
|
TEST_PEP8=0
|
|
|
|
REQ_FILE=requirements.txt
|
2019-02-07 20:34:49 +01:00
|
|
|
|
2015-05-17 00:04:46 +02:00
|
|
|
after_success:
|
|
|
|
- coveralls
|
2015-06-17 20:51:21 +02:00
|
|
|
after_failure:
|
|
|
|
- sudo cat /var/log/syslog
|