Taking cue from tornado travis setup. Trying separate 2.6, 2.7, 3.3 setups.
This commit is contained in:
parent
d6ef966a23
commit
78915c5d95
1 changed files with 6 additions and 4 deletions
10
.travis.yml
10
.travis.yml
|
|
@ -10,15 +10,17 @@ before_install:
|
||||||
- sudo apt-get install -qq python3-numpy
|
- sudo apt-get install -qq python3-numpy
|
||||||
- wget http://openjpeg.googlecode.com/files/openjpeg-1.5.0-Linux-x86_64.tar.gz
|
- wget http://openjpeg.googlecode.com/files/openjpeg-1.5.0-Linux-x86_64.tar.gz
|
||||||
- sudo tar -xvf openjpeg-1.5.0-Linux-x86_64.tar.gz --strip-components=1 -C /
|
- sudo tar -xvf openjpeg-1.5.0-Linux-x86_64.tar.gz --strip-components=1 -C /
|
||||||
- if [ "${TRAVIS_PYTHON_VERSION::1}" == 3 ]; then export TEST_PKG=unittest2py3k; else export TEST_PKG=unittest2; fi
|
|
||||||
|
|
||||||
# command to install dependencies
|
# command to install dependencies
|
||||||
install:
|
install:
|
||||||
- pip install $TEST_PKG
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors contextlib2 mock ordereddict unittest2; fi
|
||||||
- pip install -r travis-requirements.txt --use-mirrors
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --use-mirrors contextlib2 mock; fi
|
||||||
|
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script: "unit2 discover"
|
script:
|
||||||
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover; fi
|
||||||
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then python -m unittest discover; fi
|
||||||
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then python -m unittest discover; fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: "john.g.evans.ne@gmail.com"
|
email: "john.g.evans.ne@gmail.com"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue