Skip to content

Commit afc9aed

Browse files
committed
CP-8629: Adding travis requirements.
Signed-off-by: Siddharth Vinothkumar <[email protected]> Reviewed-by: Mate Lakat <[email protected]>
1 parent 798d440 commit afc9aed

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.noserc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[nosetests]
2+
verbosity=3

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
python:
3+
- "2.6"
4+
# command to install dependencies
5+
install:
6+
- "pip install -r requirements.txt --use-mirrors"
7+
# command to run tests
8+
script:
9+
- "pylint --version"
10+
- "PYTHONPATH=./snapwatchd:./drivers pylint --rcfile=tests/pylintrc ./drivers/*.py"
11+
- "cd drivers; nosetests --with-coverage -c ../.noserc ../tests/test_*.py"
12+
after_success:
13+
coveralls

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mock
2+
xenapi
3+
coveralls
4+
pylint

0 commit comments

Comments
 (0)