Skip to content

Commit

Permalink
TST: enable TravisCI tests for all supported Python versions.
Browse files Browse the repository at this point in the history
Also update for ccache, no Cython compile, etc.
  • Loading branch information
rgommers committed Jul 26, 2015
1 parent d743597 commit a97926c
Showing 1 changed file with 49 additions and 11 deletions.
60 changes: 49 additions & 11 deletions .travis.yml
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

0 comments on commit a97926c

Please sign in to comment.