-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
28 lines (25 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
before_install:
- '[ "$TEST_PEP8" == "1" ] || sudo apt-get update -qq'
- '[ "$TEST_PEP8" == "1" ] || sudo apt-get install bind9'
- '[ "$TEST_PEP8" == "1" ] || sudo apt-get install ldap-utils'
- '[ "$TEST_PEP8" == "1" ] || sudo apt-get install python-ldap'
- '[ "$TEST_PEP8" == "1" ] || sudo DEBIAN_FRONTEND=noninteractive apt-get install slapd -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y'
- '[ "$TEST_PEP8" == "1" ] || sudo ./tests/cfg/deploy.sh || true'
language: python
matrix:
include:
- python: "2.7"
env: TEST_PEP8=1
- python: "2.7"
env: TEST_PEP8=0
# command to install dependencies
install:
- "pip install -e ."
- "pip install passlib"
- "pip install python-ldap"
- "pip install coveralls"
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi"
# command to run tests
script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc,setup.py . ; else coverage run --source=dnscherry setup.py test; fi"
after_success:
- coveralls