-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST: enable TravisCI tests for all supported Python versions.
Also update for ccache, no Cython compile, etc.
- Loading branch information
Showing
1 changed file
with
49 additions
and
11 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,23 +1,61 @@ | ||
# After changing this file, check it on: | ||
# http://lint.travis-ci.org/ | ||
language: python | ||
sudo: false | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
env: | ||
- PYFLAKES=1 | ||
- PEP8=1 | ||
- NUMPYSPEC=numpy | ||
before_install: | ||
- pip install pep8==1.5.1 | ||
- pip install pyflakes | ||
script: | ||
- PYFLAKES_NODOCTEST=1 pyflakes pywt demo | grep -E -v 'unable to detect undefined names|assigned to but never used|imported but unused|redefinition of unused' > test.out; cat test.out; test \! -s test.out | ||
- pep8 pywt demo | ||
|
||
python: | ||
- 2.6 | ||
- 3.3 | ||
- python: 3.5-dev | ||
env: | ||
- NUMPYSPEC=numpy | ||
- python: 3.4 | ||
env: | ||
- NUMPYSPEC=numpy | ||
- python: 3.3 | ||
env: | ||
- NUMPYSPEC=numpy | ||
- python: 2.6 | ||
before_install: | ||
- pip install argparse | ||
env: | ||
- OPTIMIZE=-OO | ||
- NUMPYSPEC="numpy==1.6.2" | ||
- python: 2.7 | ||
env: | ||
- NUMPYSPEC="--upgrade git+git://github.com/numpy/numpy.git@v1.9.1" | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- ccache | ||
cache: | ||
directories: | ||
- $HOME/.ccache | ||
|
||
before_install: | ||
- export PATH=/usr/lib/ccache:$PATH | ||
- uname -a | ||
- free -m | ||
- df -h | ||
- ulimit -a | ||
- pip install -q --use-mirrors Cython numpy | ||
# For Python 2.6 we also need argparse | ||
- pip install argparse | ||
# Speed up install by not compiling Cython | ||
- travis_retry pip install --install-option="--no-cython-compile" Cython==0.22 | ||
- travis_retry pip install $NUMPYSPEC | ||
- travis_retry pip install nose | ||
- pip install coverage | ||
- pip install coveralls | ||
- python -V | ||
- set -o pipefail | ||
|
||
script: | ||
- python runtests.py -g -m full --coverage | ||
|
||
after_success: | ||
- coveralls | ||
- python -u $OPTIMIZE runtests.py -g -m full --coverage |