ci: run target test with python3

This commit is contained in:
Chen Yudong
2021-04-28 18:10:34 +08:00
parent f9ec761215
commit 9a29375f7d
11 changed files with 31 additions and 37 deletions

View File

@@ -1,14 +1,7 @@
#! /bin/bash
# Regexp for matching job names which are incompatible with Python 3
# - UT_009_ - multi-device tests are not compatible
# - UT_014_ - multi-device tests are not compatible
# - UT_017_ - multi-device tests are not compatible
py3_incomp='UT_009_|UT_013_|UT_014_|UT_017_'
if [ -z ${PYTHON_VER+x} ] || [[ $CI_JOB_NAME =~ $py3_incomp ]]; then
# Use this version of the Python interpreter if it was not defined before or
# the given job is not compatible with Python 3
if [ -z ${PYTHON_VER+x} ]; then
# Use this version of the Python interpreter if it was not defined before
PYTHON_VER=2.7.15
fi