From b991b93414a095d0b779210fb15337e0e06aeca9 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 23 Jul 2017 19:50:41 +0200 Subject: [PATCH 1/3] Add free automated flake8 testing on all pull requests The owner of the this repo would need to go to https://travis-ci.org/profile and flip on the repository switch to enable free automated linting of all Python files each pull requests to the `develop` branch. --- .travis.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..3115b7e9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: python +python: + - 2.7.13 + - 3.6.2 +branches: + only: + - develop +install: + - pip install flake8 # pytest # add other testing frameworks later +before_script: + # stop the build if there are Python syntax errors or undefined names + - time flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + - time flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics +script: + - true # add other tests here +notifications: + on_success: change + on_failure: always From c4ea9cd470c9b9ff7171fa8d50d9a4b27f3330d7 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 18 Nov 2017 08:02:06 +0100 Subject: [PATCH 2/3] Test all three branches --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3115b7e9..b1892a58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ python: branches: only: - develop + - first_edition + - second_edition install: - pip install flake8 # pytest # add other testing frameworks later before_script: From 4541dc5a960778b1364a08a440722966f12e1f2b Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 18 Nov 2017 08:02:35 +0100 Subject: [PATCH 3/3] Update .travis.yml --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b1892a58..dcb212e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python python: - - 2.7.13 - - 3.6.2 + - 2.7 + - 3.6 branches: only: - develop