-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled to release mongoengine to PyPi when tagging.
- Loading branch information
Showing
1 changed file
with
61 additions
and
53 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,63 +1,71 @@ | ||
# http://travis-ci.org/#!/MongoEngine/mongoengine | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
- "pypy" | ||
- "pypy3" | ||
- '2.6' | ||
- '2.7' | ||
- '3.2' | ||
- '3.3' | ||
- '3.4' | ||
- pypy | ||
- pypy3 | ||
env: | ||
- PYMONGO=2.7.2 DJANGO=dev | ||
- PYMONGO=2.7.2 DJANGO=1.7.1 | ||
- PYMONGO=2.7.2 DJANGO=1.6.8 | ||
- PYMONGO=2.7.2 DJANGO=1.5.11 | ||
- PYMONGO=2.8 DJANGO=dev | ||
- PYMONGO=2.8 DJANGO=1.7.1 | ||
- PYMONGO=2.8 DJANGO=1.6.8 | ||
- PYMONGO=2.8 DJANGO=1.5.11 | ||
|
||
- PYMONGO=2.7.2 DJANGO=dev | ||
- PYMONGO=2.7.2 DJANGO=1.7.1 | ||
- PYMONGO=2.7.2 DJANGO=1.6.8 | ||
- PYMONGO=2.7.2 DJANGO=1.5.11 | ||
- PYMONGO=2.8 DJANGO=dev | ||
- PYMONGO=2.8 DJANGO=1.7.1 | ||
- PYMONGO=2.8 DJANGO=1.6.8 | ||
- PYMONGO=2.8 DJANGO=1.5.11 | ||
matrix: | ||
exclude: | ||
- python: "2.6" | ||
env: PYMONGO=2.7.2 DJANGO=dev | ||
- python: "2.6" | ||
env: PYMONGO=2.8 DJANGO=dev | ||
- python: "2.6" | ||
env: PYMONGO=2.7.2 DJANGO=1.7.1 | ||
- python: "2.6" | ||
env: PYMONGO=2.8 DJANGO=1.7.1 | ||
allow_failures: | ||
- python: "pypy3" | ||
fast_finish: true | ||
|
||
exclude: | ||
- python: '2.6' | ||
env: PYMONGO=2.7.2 DJANGO=dev | ||
- python: '2.6' | ||
env: PYMONGO=2.8 DJANGO=dev | ||
- python: '2.6' | ||
env: PYMONGO=2.7.2 DJANGO=1.7.1 | ||
- python: '2.6' | ||
env: PYMONGO=2.8 DJANGO=1.7.1 | ||
allow_failures: | ||
- python: pypy3 | ||
fast_finish: true | ||
before_install: | ||
- "travis_retry sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10" | ||
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list" | ||
- "travis_retry sudo apt-get update" | ||
- "travis_retry sudo apt-get install mongodb-org-server" | ||
|
||
- travis_retry sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | ||
- echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | | ||
sudo tee /etc/apt/sources.list.d/mongodb.list | ||
- travis_retry sudo apt-get update | ||
- travis_retry sudo apt-get install mongodb-org-server | ||
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 | ||
- if [[ $DJANGO == 'dev' ]]; then travis_retry pip install git+https://github.com/django/django.git; fi | ||
- if [[ $DJANGO != 'dev' ]]; then travis_retry pip install Django==$DJANGO; 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 | ||
|
||
- 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 | ||
- if [[ $DJANGO == 'dev' ]]; then travis_retry pip install git+https://github.com/django/django.git; | ||
fi | ||
- if [[ $DJANGO != 'dev' ]]; then travis_retry pip install Django==$DJANGO; 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 | ||
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 | ||
after_script: | ||
coveralls --verbose | ||
- 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 | ||
after_script: coveralls --verbose | ||
notifications: | ||
irc: "irc.freenode.org#mongoengine" | ||
irc: irc.freenode.org#mongoengine | ||
branches: | ||
only: | ||
- master | ||
- master | ||
deploy: | ||
provider: pypi | ||
user: the_drow | ||
password: | ||
secure: QMyatmWBnC6ZN3XLW2+fTBDU4LQcp1m/LjR2/0uamyeUzWKdlOoh/Wx5elOgLwt/8N9ppdPeG83ose1jOz69l5G0MUMjv8n/RIcMFSpCT59tGYqn3kh55b0cIZXFT9ar+5cxlif6a5rS72IHm5li7QQyxexJIII6Uxp0kpvUmek= | ||
on: | ||
tags: true | ||
repo: MongoEngine/mongoengine |