-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from enthought/ci/edm-chaco
EDM-based CI
- Loading branch information
Showing
5 changed files
with
351 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.