Tests/Tox/TravisCI improvements

This commit is contained in:
Axel Haustant
2015-04-17 11:26:47 +02:00
parent aa7bf7af1e
commit 91ee85152c
6 changed files with 29 additions and 32 deletions

View File

@@ -8,20 +8,30 @@ python:
- pypy
- pypy3
env:
- PYMONGO=2.7.2
- PYMONGO=2.8
- PYMONGO=2.7 DJANGO=dev
- PYMONGO=2.7 DJANGO=1.8
- PYMONGO=2.7 DJANGO=1.7
- PYMONGO=2.7 DJANGO=1.6
- PYMONGO=2.7 DJANGO=1.5
- PYMONGO=2.8 DJANGO=dev
- PYMONGO=2.8 DJANGO=1.8
- PYMONGO=2.8 DJANGO=1.7
- PYMONGO=2.8 DJANGO=1.6
- PYMONGO=2.8 DJANGO=1.5
matrix:
exclude:
- python: '2.6'
env: PYMONGO=2.7.2
env: PYMONGO=2.7 DJANGO=dev
- python: '2.6'
env: PYMONGO=2.8
- python: '2.6'
env: PYMONGO=2.7.2
env: PYMONGO=2.7 DJANGO=1.7
- python: '2.6'
env: PYMONGO=2.8
allow_failures:
- python: pypy3
env: PYMONGO=2.8 DJANGO=1.7
- python: '2.6'
env: PYMONGO=2.7 DJANGO=1.8
- python: '2.6'
env: PYMONGO=2.8 DJANGO=1.8
fast_finish: true
before_install:
- travis_retry sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
@@ -33,19 +43,9 @@ install:
- sudo apt-get install python-dev python3-dev libopenjpeg-dev zlib1g-dev libjpeg-turbo8-dev
libtiff4-dev libjpeg8-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev
python-tk
- if [[ $PYMONGO == 'dev' ]]; then travis_retry pip install https://github.com/mongodb/mongo-python-driver/tarball/master;
true; fi
- if [[ $PYMONGO != 'dev' ]]; then travis_retry pip install pymongo==$PYMONGO; true;
fi
- travis_retry pip install https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.1.tar.gz#md5=1534bb15cf311f07afaa3aacba1c028b
- travis_retry pip install coveralls
- travis_retry python setup.py install
- travis_retry pip install tox>=1.9
script:
- travis_retry python setup.py test
- if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]]; then 2to3 . -w; fi;
- coverage run --source=mongoengine setup.py test
- coverage report -m
- python benchmark.py
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-mg$PYMONGO-dj$DJANGO | tr -d . | sed -e 's/pypypy/pypy/') -- with-coverage
after_script: coveralls --verbose
notifications:
irc: irc.freenode.org#mongoengine