]> git.parisson.com Git - timeside.git/commitdiff
Add coverage to Travis-CI
authorThomas Fillon <thomas@parisson.com>
Tue, 22 Apr 2014 06:18:35 +0000 (08:18 +0200)
committerThomas Fillon <thomas@parisson.com>
Tue, 22 Apr 2014 06:18:35 +0000 (08:18 +0200)
.travis.yml

index ba77fd7b9b9377d668ffd56a26e51d96117f3b13..0415ea60bafe842b13bca3587020508ae51410b6 100644 (file)
@@ -8,17 +8,18 @@ virtualenv:
 
 # command to prepare the system to install prerequisites or dependencies
 before_install:
+ - sudo apt-get install -qq python-numpy python-scipy python-matplotlib
  - sudo add-apt-repository -y ppa:donk/gstreamer
  - sudo apt-get -qq update
  - sudo apt-get install -qq libhdf5-serial-dev python-h5py
  - sudo apt-get install -qq libatlas-dev libatlas-base-dev gfortran
- - sudo apt-get install -qq python-numpy python-scipy python-matplotlib
  - sudo apt-get install -qq python-gst0.10 gstreamer0.10-plugins-good gstreamer0.10-gnonlin gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad
 
 # command to install dependencies
 install: 
 # - "pip install -r requirements.txt --use-mirrors"
  - python setup.py install
+ - pip install coveralls
 
 # command to run tests
 before_script:
@@ -26,4 +27,7 @@ before_script:
 
 script:
 # - py.test tests --ignore tests/sandbox
- - python setup.py test
+ - coverage run --source=timeside python setup.py test
+
+after_success:
+  coveralls
\ No newline at end of file