mirror of
https://github.com/CorsixTH/CorsixTH.git
synced 2025-07-23 04:13:01 +02:00
Switch to Python3
This commit is contained in:
@@ -43,9 +43,9 @@ script:
|
||||
# Check if there are trailing whitespaces.
|
||||
- ${TRAVIS_BUILD_DIR}/scripts/check_trailing_whitespaces.py $TRAVIS_BUILD_DIR
|
||||
# Check for incorrectly encoded language files.
|
||||
- python ${TRAVIS_BUILD_DIR}/scripts/check_language_files_not_BOM.py $TRAVIS_BUILD_DIR/CorsixTH/Lua/languages
|
||||
- ${TRAVIS_BUILD_DIR}/scripts/check_language_files_not_BOM.py $TRAVIS_BUILD_DIR/CorsixTH/Lua/languages
|
||||
# Check if there are lua classes with invalid/improper declarations.
|
||||
- python ${TRAVIS_BUILD_DIR}/scripts/check_lua_classes.py
|
||||
- ${TRAVIS_BUILD_DIR}/scripts/check_lua_classes.py
|
||||
# Build CorsixTH
|
||||
- make VERBOSE=1
|
||||
# Validate lua files
|
||||
|
2
scripts/check_language_files_not_BOM.py
Normal file → Executable file
2
scripts/check_language_files_not_BOM.py
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
Usage: check_language_files_not_BOM.py [root]
|
||||
|
2
scripts/check_lua_classes.py
Normal file → Executable file
2
scripts/check_lua_classes.py
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import re
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
Usage: check_trailing_whitespaces.py [root]
|
||||
|
Reference in New Issue
Block a user