From c5453151927453d5068c2befc992c8e3e6494564 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 15 Feb 2019 15:02:51 -0500 Subject: [PATCH] ENH: travis - run shellcheck on files/debian-initd --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index ebfcd68e..230617c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,8 @@ install: - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then travis_retry sudo apt-get install -qq python-gamin && cp /usr/share/pyshared/gamin.py /usr/lib/pyshared/python2.7/_gamin.so $VIRTUAL_ENV/lib/python2.7/site-packages/; fi # pyinotify - travis_retry pip install pyinotify + # Install helper tools + - sudo apt-get install shellcheck before_script: # Manually execute 2to3 for now - if [[ "$F2B_PY" = 3 ]]; then ./fail2ban-2to3; fi @@ -53,6 +55,8 @@ script: - sudo $VENV_BIN/pip install . # Doc files should get installed on Travis under Linux - test -e /usr/share/doc/fail2ban/FILTERS + # Test initd script + - shellcheck -s bash -e SC1090,SC1091 files/debian-initd after_success: - if [[ "$F2B_COV" = 1 ]]; then coveralls; fi - codecov