Skip to content

Commit 63fc63c

Browse files
committed
Explicitly add PYTHON_VERSION to travis jobs
The image that travis uses contain both python 2.7 and python 3.6. Explicitly add the PYTHON_VERSION environment variable to instruct which python executable to use.
1 parent 7de6560 commit 63fc63c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
# scripts/travis/run-nightly-make-task-if-exists.sh
3939
- name: "Unit Tests (Python 2.7 MongoDB 4.0)"
4040
python: 2.7
41-
env: TASK=ci-unit CACHE_NAME=py2 COMMAND_THRESHOLD=700
41+
env: TASK=ci-unit CACHE_NAME=py2 PYTHON_VERSION=python2.7 COMMAND_THRESHOLD=700
4242

4343
- name: "Integration Tests (Python 2.7)"
4444
python: 2.7
45-
env: TASK=ci-integration CACHE_NAME=py2 COMMAND_THRESHOLD=700
45+
env: TASK=ci-integration CACHE_NAME=py2 PYTHON_VERSION=python2.7 COMMAND_THRESHOLD=700
4646

4747
- name: "Lint Checks, Packs Tests (Python 3.6)"
4848
python: 3.6
49-
env: TASK="ci-checks ci-packs-tests" CACHE_NAME=py3 COMMAND_THRESHOLD=430
49+
env: TASK="ci-checks ci-packs-tests" CACHE_NAME=py3 PYTHON_VERSION=python3.6 COMMAND_THRESHOLD=430
5050

5151
- name: "Unit Tests, Pack Tests (Python 3.6)"
5252
python: 3.6

0 commit comments

Comments
 (0)