mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
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 . -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
|