From 5eb968571e69da25c0015ef094e62c5aa75b1eda Mon Sep 17 00:00:00 2001 From: abregman Date: Sat, 21 Dec 2019 21:27:26 +0200 Subject: [PATCH] Add .travis.yml For running the newly added syntax_checker + PEP8 test for the Python files in this project. Also added small print to syntax_checker to indicate tests passed successfully (yes, lack of error is also indication but this is more user friendly imho). --- .travis.yml | 8 ++++++++ tests/syntax_checker.py | 1 + 2 files changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2491b17 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: "python" +python: + - "3.8" +install: + - pip install flake8 +script: + - flake8 . + - python tests/syntax_checker.py diff --git a/tests/syntax_checker.py b/tests/syntax_checker.py index 6c7d30b..2a223ad 100644 --- a/tests/syntax_checker.py +++ b/tests/syntax_checker.py @@ -110,3 +110,4 @@ def check_summary_tag(file_list): if __name__ == '__main__': check_details_tag(file_list) check_summary_tag(file_list) + print("tests passed successfully")