build: test Python 3.6 and 3.7 on Travis CI

PR-URL: https://github.com/nodejs/node/pull/29291
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
pull/29294/merge
cclauss 2019-08-24 10:36:34 +02:00 committed by Rich Trott
parent 4662f67e38
commit bfa2683eb6
1 changed files with 15 additions and 2 deletions

View File

@ -88,7 +88,19 @@ jobs:
bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
fi
- name: "Python 3 is EXPERIMENTAL"
- name: "Python 3 is EXPERIMENTAL (Py36)"
language: node_js
node_js: "node"
install:
- pyenv global 3.6.7
- python3.6 -m pip install --upgrade pip
- make lint-py-build
script:
- NODE=$(which node) make lint lint-py
- python3.6 ./configure.py
- NODE=$(which node) make test
- name: "Python 3 is EXPERIMENTAL (Py37)"
language: node_js
node_js: "node"
install:
@ -101,4 +113,5 @@ jobs:
- NODE=$(which node) make test
allow_failures:
- name: "Python 3 is EXPERIMENTAL"
- name: "Python 3 is EXPERIMENTAL (Py36)"
- name: "Python 3 is EXPERIMENTAL (Py37)"