From 2a27011eca7995b104a7ce18ecc259b89ff90a71 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 6 Jul 2019 11:07:07 +0200 Subject: [PATCH 1/4] Travis CI: Build Directory.md As suggested at https://github.com/TheAlgorithms/Python/pull/884#issuecomment-508688850 --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8676e5127334..bdd51de082c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,9 @@ dist: xenial # required for Python >= 3.7 python: 3.7 install: pip install flake8 script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + +matrix: + include: + language: bash + install: chmod +x ./~script + script: ./~script From 17f78e67fe86b6c340948d2443bfd56a4df8add4 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 6 Jul 2019 11:10:05 +0200 Subject: [PATCH 2/4] ./~script.sh --- .travis.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index bdd51de082c0..127c24f8b9e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,10 @@ -language: python -dist: xenial # required for Python >= 3.7 -python: 3.7 -install: pip install flake8 -script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - matrix: include: - language: bash - install: chmod +x ./~script - script: ./~script + - language: python + dist: xenial # required for Python >= 3.7 + python: 3.7 + install: pip install flake8 + script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + - language: bash + install: chmod +x ./~script.sh + script: ./~script.sh From 6b2c089d69a763455772c8a2d48dc72ee48fa519 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 6 Jul 2019 11:14:41 +0200 Subject: [PATCH 3/4] after_success: python ./~script.py --- .travis.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 127c24f8b9e8..9583e5bedf91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,6 @@ -matrix: - include: - - language: python - dist: xenial # required for Python >= 3.7 - python: 3.7 - install: pip install flake8 - script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - - language: bash - install: chmod +x ./~script.sh - script: ./~script.sh +language: python +dist: xenial # required for Python >= 3.7 +python: 3.7 +install: pip install flake8 +script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics +after_success: python ./~script.py From cb4ed753b83c842469a31a948f96b53703cc1474 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 6 Jul 2019 11:18:08 +0200 Subject: [PATCH 4/4] cat DIRECTORY.md --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9583e5bedf91..fbb32fbad93b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,6 @@ dist: xenial # required for Python >= 3.7 python: 3.7 install: pip install flake8 script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics -after_success: python ./~script.py +after_success: + - python ./~script.py + - cat DIRECTORY.md