forked from enthought/chaco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (61 loc) · 1.38 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: python
sudo: false
python:
- 2.7_with_system_site_packages
- 3.4
- 3.5
env:
- ETS_TOOLKIT='qt4'
- ETS_TOOLKIT='wx'
- ETS_TOOLKIT='null'
matrix:
exclude:
- python: 3.4
env: ETS_TOOLKIT='wx'
- python: 3.5
env: ETS_TOOLKIT='wx'
- python: 3.5
env: ETS_TOOLKIT='qt4'
cache:
- pip
- ccache
addons:
apt:
packages:
- python-qt4
- python-qt4-gl
- python-qt4-dev
- python-wxtools
- python-numpy
- libjpeg8-dev
- zlib1g-dev
- libpng-dev
- libfreetype36-dev
- python-cairo
- cmake
- swig
- ccache
before_install:
- ccache -s
- pip install --upgrade pip
- if [[ ${TRAVIS_PYTHON_VERSION} == "3.4" && ${ETS_TOOLKIT} == "qt4" ]]; then ./build_pyside_wheel.sh; fi
- export PATH=/usr/lib/ccache:${PATH}
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- pip install cython
- pip install -r travis-ci-requirements.txt
- git clone https://github.com/enthought/enable.git --depth 1
- cd enable
- pip install -r travis-ci-requirements
- python setup.py develop
- cd ..
- python setup.py develop
- mkdir testing_dir
- cd testing_dir
script:
- coverage run -m nose.core -v chaco --exclude-dir=../chaco/tests_with_backend
- if [[ $ETS_TOOLKIT != 'null' ]]; then coverage run -a -m nose.core -v ../chaco/tests_with_backend; fi
after_success:
- pip install codecov
- codecov