Merge pull request #2115 from bagerard/use_globals_in_travis_yml
Use global constants for mongo/pymongo in travis.yml
This commit is contained in:
commit
2d28c258fd
10
.travis.yml
10
.travis.yml
@ -32,8 +32,10 @@ env:
|
|||||||
global:
|
global:
|
||||||
- MONGODB_3_4=3.4.17
|
- MONGODB_3_4=3.4.17
|
||||||
- MONGODB_3_6=3.6.12
|
- MONGODB_3_6=3.6.12
|
||||||
|
- PYMONGO_3_6=3.6
|
||||||
|
- PYMONGO_3_4=3.4
|
||||||
matrix:
|
matrix:
|
||||||
- MONGODB=${MONGODB_3_4} PYMONGO=3.x
|
- MONGODB=${MONGODB_3_4} PYMONGO=${PYMONGO_3_6}
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
|
||||||
@ -42,9 +44,9 @@ matrix:
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
env: MONGODB=${MONGODB_3_4} PYMONGO=3.4.x
|
env: MONGODB=${MONGODB_3_4} PYMONGO=${PYMONGO_3_4}
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
env: MONGODB=${MONGODB_3_6} PYMONGO=3.x
|
env: MONGODB=${MONGODB_3_6} PYMONGO=${PYMONGO_3_6}
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ -105,5 +107,5 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
repo: MongoEngine/mongoengine
|
repo: MongoEngine/mongoengine
|
||||||
condition: ($PYMONGO = 3.x) && ($MONGODB = 3.4.17)
|
condition: ($PYMONGO = ${PYMONGO_3_6}) && ($MONGODB = ${MONGODB_3_4})
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
6
tox.ini
6
tox.ini
@ -1,12 +1,12 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = {py27,py35,pypy,pypy3}-{mg35,mg3x}
|
envlist = {py27,py35,pypy,pypy3}-{mg34,mg36}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
python setup.py nosetests {posargs}
|
python setup.py nosetests {posargs}
|
||||||
deps =
|
deps =
|
||||||
nose
|
nose
|
||||||
mg34x: PyMongo>=3.4,<3.5
|
mg34: pymongo>=3.4,<3.5
|
||||||
mg3x: PyMongo>=3.0,<3.7
|
mg36: pymongo>=3.6,<3.7
|
||||||
setenv =
|
setenv =
|
||||||
PYTHON_EGG_CACHE = {envdir}/python-eggs
|
PYTHON_EGG_CACHE = {envdir}/python-eggs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user