forked from shinken-solutions/shinken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (23 loc) · 807 Bytes
/
.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
language: python
# Allow shinken to run on new travis infra
sudo: False
# Allow cache of downloads
cache: pip
python:
- "2.6"
- "2.7"
# command to install dependencies
# some are only used for travis/coveralls so we are installing them here only
install:
- ./test/setup_test.sh
# command to run tests
# notice: the nose-cov is used because it is compatible with --processes, but produce a .coverage by process
# so we must combine them in the end
script:
- cd test
- nosetests -xv --process-restartworker --processes=1 --process-timeout=999999999 --with-cov --cov=shinken
- coverage combine
- cd .. && pep8 --max-line-length=120 --ignore=E303,E302,E301,E241,W293,W291,E221 --exclude='*.pyc' shinken/*
# specific call to launch coverage data into coveralls.io
after_success:
coveralls