mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-11 20:11:47 +00:00
python3 syntax checker ratchet job
This commit is contained in:
19
.travis.yml
19
.travis.yml
@ -22,7 +22,13 @@ install:
|
|||||||
- python misc/build_helpers/show-tool-versions.py
|
- python misc/build_helpers/show-tool-versions.py
|
||||||
|
|
||||||
script:
|
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:
|
after_success:
|
||||||
- if [ "${T}" = "coverage" ]; then codecov; fi
|
- if [ "${T}" = "coverage" ]; then codecov; fi
|
||||||
@ -40,17 +46,28 @@ notifications:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
|
python: '2.7'
|
||||||
env: T=coverage LANG=en_US.UTF-8
|
env: T=coverage LANG=en_US.UTF-8
|
||||||
- os: linux
|
- os: linux
|
||||||
|
python: '2.7'
|
||||||
env: T=codechecks LANG=en_US.UTF-8
|
env: T=codechecks LANG=en_US.UTF-8
|
||||||
- os: linux
|
- os: linux
|
||||||
|
python: '2.7'
|
||||||
env: T=pyinstaller LANG=en_US.UTF-8
|
env: T=pyinstaller LANG=en_US.UTF-8
|
||||||
- os: linux
|
- os: linux
|
||||||
|
python: '2.7'
|
||||||
env: T=py27 LANG=C
|
env: T=py27 LANG=C
|
||||||
- os: osx
|
- os: osx
|
||||||
|
python: '2.7'
|
||||||
env: T=py27 LANG=en_US.UTF-8
|
env: T=py27 LANG=en_US.UTF-8
|
||||||
language: generic # "python" is not available on OS-X
|
language: generic # "python" is not available on OS-X
|
||||||
- os: osx
|
- os: osx
|
||||||
|
python: '2.7'
|
||||||
env: T=pyinstaller LANG=en_US.UTF-8
|
env: T=pyinstaller LANG=en_US.UTF-8
|
||||||
language: generic # "python" is not available on OS-X
|
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
|
fast_finish: true
|
||||||
|
0
py3_valid_syntax.txt
Normal file
0
py3_valid_syntax.txt
Normal file
Reference in New Issue
Block a user