Use global constants for mongo/pymongo in travis.yml

This commit is contained in:
Bastien Gérard 2019-06-30 21:03:13 +02:00
parent 9170eea784
commit 06a21e038a

View File

@ -30,8 +30,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_X=3.x
- PYMONGO_3_4=3.4.x
matrix: matrix:
- MONGODB=${MONGODB_3_4} PYMONGO=3.x - MONGODB=${MONGODB_3_4} PYMONGO=${PYMONGO_3_X}
matrix: matrix:
@ -40,11 +42,11 @@ 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.6 - python: 3.6
env: MONGODB=${MONGODB_3_6} PYMONGO=3.x env: MONGODB=${MONGODB_3_6} PYMONGO=${PYMONGO_3_X}
- python: 3.7 - python: 3.7
env: MONGODB=${MONGODB_3_6} PYMONGO=3.x env: MONGODB=${MONGODB_3_6} PYMONGO=${PYMONGO_3_X}
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_X}) && ($MONGODB = ${MONGODB_3_4})
python: 2.7 python: 2.7