forked from enthought/mayavi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 1.81 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
language: generic
sudo: false
env:
global:
- INSTALL_EDM_VERSION=1.9.1
PYTHONUNBUFFERED="1"
matrix:
include:
- os: linux
env: RUNTIME=2.7 ETS_TOOLKIT=qt4 VTK=8
- os: linux
env: RUNTIME=2.7 ETS_TOOLKIT=wx VTK=8
- os: linux
env: RUNTIME=3.6 ETS_TOOLKIT=qt4 VTK=8
- os: osx
env: RUNTIME=3.6 ETS_TOOLKIT=qt4 VTK=8
- os: osx
env: RUNTIME=2.7 ETS_TOOLKIT=qt4 VTK=7
cache:
directories:
- $HOME/.cache
before_install:
- mkdir -p "${HOME}/.cache/download"
- export DISPLAY=:99.0
- if [[ ${TRAVIS_OS_NAME} == "linux" ]] ; then sh -e /etc/init.d/xvfb start; fi
- if [[ ${TRAVIS_OS_NAME} == 'linux' ]]; then ./ci/install-edm-linux.sh; export PATH="${HOME}/edm/bin:${PATH}"; fi
- if [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then ./ci/install-edm-osx.sh; export PATH="${PATH}:/usr/local/bin"; fi
- edm install --version ${RUNTIME} -y wheel numpy nose mock Sphinx coverage psutil
install:
- if [[ ${ETS_TOOLKIT} == 'wx' ]]; then edm install -y wxpython; fi
- if [[ ${ETS_TOOLKIT} == 'qt4' && ${RUNTIME} == '2.7' ]]; then edm install -y pyside; fi
- if [[ ${ETS_TOOLKIT} == 'qt4' && ${RUNTIME} == '3.6' ]]; then edm run -- pip install pyqt5; fi
- edm run -- pip install -r ci/ci-requirements.txt
- if [[ ${VTK} == '8' ]]; then edm run -- pip install vtk; fi
- if [[ ${VTK} != '8' ]]; then edm install -y vtk; fi
- edm run -- python -c "import vtk; print(vtk.vtkVersion.GetVTKSourceVersion())"
- edm run -- python setup.py develop
script:
- edm run -- coverage erase
- edm run -- coverage run -p -m nose.core -v tvtk/tests
- edm run -- coverage run -p -m nose.core -v mayavi
#- if [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then sh ci/travis-run-integration-tests.sh; fi
- edm run -- coverage combine
after_success:
- edm run -- pip install codecov
- edm run -- codecov