Skip to content

Commit

Permalink
Merge pull request #365 from enthought/ci/edm-chaco
Browse files Browse the repository at this point in the history
EDM-based CI
  • Loading branch information
jvkersch committed Jul 11, 2017
2 parents 4a4c3b0 + 340c42f commit a439a92
Show file tree
Hide file tree
Showing 5 changed files with 351 additions and 75 deletions.
86 changes: 38 additions & 48 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,51 @@
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-wxtools
- python-numpy
- libjpeg8-dev
- zlib1g-dev
- libpng-dev
- libfreetype6-dev
- python-cairo
- ccache
- cmake
- swig
- ccache

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=2.7 TOOLKIT=pyside
- 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.

0 comments on commit a439a92

Please sign in to comment.