python3 syntax checker ratchet job

This commit is contained in:
heartsucker 2019-03-21 17:13:10 +01:00
parent 664bd2dec8
commit 138669c726
No known key found for this signature in database
GPG Key ID: C49FAAAA25756E79
2 changed files with 18 additions and 1 deletions

View File

@ -22,7 +22,13 @@ install:
- python misc/build_helpers/show-tool-versions.py
script:
- tox -e ${T}
- |
set -eo pipefail
if [ "${T}" = "py35" ]; then
cat py3_valid_syntax.txt | xargs python3 -m compileall -f
else
tox -e ${T}
fi
after_success:
- if [ "${T}" = "coverage" ]; then codecov; fi
@ -40,17 +46,28 @@ notifications:
matrix:
include:
- os: linux
python: '2.7'
env: T=coverage LANG=en_US.UTF-8
- os: linux
python: '2.7'
env: T=codechecks LANG=en_US.UTF-8
- os: linux
python: '2.7'
env: T=pyinstaller LANG=en_US.UTF-8
- os: linux
python: '2.7'
env: T=py27 LANG=C
- os: osx
python: '2.7'
env: T=py27 LANG=en_US.UTF-8
language: generic # "python" is not available on OS-X
- os: osx
python: '2.7'
env: T=pyinstaller LANG=en_US.UTF-8
language: generic # "python" is not available on OS-X
# this is a "lint" job that checks for python3 compatibility
- os: linux
python: '3.5'
env: T=py35
fast_finish: true

0
py3_valid_syntax.txt Normal file
View File