ldapcherry/.travis.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

2015-04-14 20:55:19 +02:00
env:
- TRAVIS="yes"
2015-04-14 16:04:33 +02:00
before_install:
2015-10-20 22:58:07 +02:00
- '[ "$TEST_PEP8" == "1" ] && curl https://ftp-master.debian.org/keys/archive-key-7.0.asc | sudo apt-key add -'
- '[ "$TEST_PEP8" == "1" ] && echo "deb http://http.debian.net/debian wheezy-backports main" | sudo tee -a /etc/apt/sources.list'
- '[ "$TEST_PEP8" == "1" ] && echo "deb http://http.debian.net/debian wheezy main" | sudo tee -a /etc/apt/sources.list'
- '[ "$TEST_PEP8" == "1" ] && sudo /sbin/ifconfig'
- '[ "$TEST_PEP8" == "1" ] && sudo apt-get update -qq'
- '[ "$TEST_PEP8" == "1" ] && sudo rm /etc/dpkg/dpkg.cfg.d/multiarch'
- '[ "$TEST_PEP8" == "1" ] && sudo ./tests/test_env/deploy.sh'
2015-04-14 16:04:33 +02:00
language: python
python:
- "2.7"
2015-04-14 16:25:48 +02:00
# - "3.2"
# - "3.3"
2015-04-14 16:04:33 +02:00
# command to install dependencies
install:
2015-07-11 23:07:26 +02:00
- pip install -e .
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi"
2015-04-14 16:04:33 +02:00
- pip install passlib
2015-05-17 00:04:46 +02:00
- pip install coveralls
2015-04-14 16:04:33 +02:00
# command to run tests
2015-05-17 00:04:46 +02:00
script:
2015-06-17 20:51:21 +02:00
- coverage run --source=ldapcherry setup.py test
2015-07-11 23:07:26 +02:00
- "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi"
2015-07-13 10:23:56 +02:00
script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi"
2015-07-11 23:07:26 +02:00
matrix:
include:
- python: "2.7"
env: TEST_PEP8=1
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