Skip to content

Commit aabd758

Browse files
committed
Add coverage to travis.yml
1 parent 30bab2c commit aabd758

3 files changed

Lines changed: 28 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ test/
44
control/version.py
55
build.log
66
*.egg-info/
7+
.coverage

.travis.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
11
language: python
22
python:
3-
- "2.7_with_system_site_packages"
4-
- "3.2_with_system_site_packages"
3+
- "2.7"
4+
- "3.2"
5+
- "3.3"
56
# install required system libraries
67
before_install:
7-
- sudo apt-get update
8-
- sudo apt-get install -qq python-numpy python-scipy
8+
- export DISPLAY=:99.0
9+
- sh -e /etc/init.d/xvfb start
10+
- sudo apt-get update --fix-missing -qq
11+
- sudo apt-get build-dep python-scipy -qq
912
# command to install dependencies from source
10-
install: "pip install -r requirements.txt"
13+
# note, separating requirements so that travis
14+
# will get output in less than 5 min and won't
15+
# terminate, using q to keep build info to a
16+
# minumum for dependencies
17+
install:
18+
- while [[ 1 ]]; do echo "building deps"; sleep 300; done &
19+
- msg_pid=$!
20+
- pip install -q coverage
21+
- pip install -q coveralls
22+
- pip install -q nose
23+
- pip install -q numpy
24+
- pip install -q scipy
25+
- pip install -q slycot
26+
- pip install -q matplotlib
27+
- kill $msg_pid
28+
1129
# command to run tests
12-
script: python runtests.py
30+
script:
31+
- coverage run --source=control setup.py test
32+
after_success:
33+
- coveralls

requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)