Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 41 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,58 @@
language: python
language: generic
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-qt4-gl
- python-wxtools
- python-numpy
- libjpeg8-dev
- ccache
- cmake
- swig
- zlib1g-dev
- libpng-dev
- libfreetype6-dev
- python-cairo
- cmake
- swig
- ccache
- libcairo2-dev

env:
global:
- INSTALL_EDM_VERSION=1.5.2
PYTHONUNBUFFERED="1"

matrix:
include:
- env: RUNTIME=2.7 TOOLKIT=wx
- env: RUNTIME=2.7 TOOLKIT=pyqt
- env: RUNTIME=2.7 TOOLKIT=null
- env: RUNTIME=3.5 TOOLKIT=pyqt
- env: RUNTIME=3.5 TOOLKIT=null
fast_finish: true

branches:
only:
- master

cache:
directories:
- $HOME/.cache
- $HOME/.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}
- mkdir -p "${HOME}/.cache/download"
- ci/install-edm.sh
- export PATH="${HOME}/edm/bin:/usr/lib/ccache:${PATH}"
- edm install -y wheel click coverage
- 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
- edm run -- python ci/edmtool.py install --runtime=${RUNTIME} --toolkit=${TOOLKIT}
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
- edm run -- python ci/edmtool.py test --runtime=${RUNTIME} --toolkit=${TOOLKIT}

after_success:
- pip install codecov
- codecov
- edm run -- coverage combine
- edm run -- pip install codecov
- edm run -- codecov
27 changes: 0 additions & 27 deletions build_pyside_wheel.sh

This file was deleted.

Loading