/
.travis.yml
33 lines (33 loc) · 1.27 KB
/
.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
28
29
30
31
32
33
language: python
python:
- '2.7_with_system_site_packages'
- 2.6
before_install:
- sudo apt-get update
# For Python 2.7, install PyQt4 and cairo
- if [[ $TRAVIS_PYTHON_VERSION == '2.7_with_system_site_packages' ]]; then source .travis_before_install; fi
# PyQt and cairo can't be installed on 2.6; run the tests without Qt
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then source .travis_before_install_noqt; fi
- sudo apt-get install swig
# Simlinks for PIL compilation
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib/
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so /usr/lib/
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libpng.so /usr/lib/
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so /usr/lib/
install:
# nose is already installed
# numpy is already installed
- pip install -r dev_requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install -r requirements-2.6.txt; fi
- pip install coveralls
- python setup.py develop
script:
- coverage run -m nose.core -v enable/tests
- coverage run -a -m nose.core -v enable/savage/svg/tests
- coverage run -a -m nose.core -v kiva/tests
- coverage run -a -m nose.core -v kiva/agg/tests
notifications:
email:
- travis-ci@enthought.com
after_success:
coveralls