From 93e5429ed5bd7211768e0f0f89fb4cc9b03aa007 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Tue, 22 Sep 2015 20:18:12 +0200 Subject: [PATCH] Add sqf validator script to travis configuration --- .travis.yml | 1 + tools/sqf_validator.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 388b1f114f..0aadd9cd0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ before_script: - pip install pygithub3 script: - python3 tools/deploy.py + - python3 tools/sqf_validator.py env: global: - secure: "KcJQbknBOdC5lA4nFGKPXVRVIGLDXDRzC8XkHuXJCE9pIR/wbxbkvx8fHKcC6SC9eHgzneC3+o4m4+CjIbVvIwDgslRbJ8Y59i90ncONmdoRx1HUYHwuYWVZm9HJFjCsIbrEqhSyyKS+PB3WZVOLbErtNHsgS8f43PTh5Ujg7Vg=" diff --git a/tools/sqf_validator.py b/tools/sqf_validator.py index 5bd65619e8..c80e2e5462 100644 --- a/tools/sqf_validator.py +++ b/tools/sqf_validator.py @@ -114,8 +114,8 @@ def main(): for filename in sqf_list: bad_count = bad_count + check_sqf_syntax(filename) - print ("Bad Count {0}".format(bad_count)) + return bad_count if __name__ == "__main__": - main() + sys.exit(main())