From 3e09f5932c2406570150c94c44ba81384881c02d Mon Sep 17 00:00:00 2001 From: Nedyalko Andreev Date: Thu, 16 Nov 2017 17:14:51 +0200 Subject: [PATCH] Use the docker image of shellcheck for checking the scripts This should be both faster (less package-related waiting) and better (newer version of shellcheck). And we will probably want docker support for testing the scripts anyway. --- .travis.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a66f06..27091a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,15 @@ +sudo: required + language: bash -addons: - apt: - sources: - - debian-sid # Grab ShellCheck from the Debian repo - packages: - - shellcheck +services: + - docker + +before_install: + - docker pull koalaman/shellcheck:latest script: - - shellcheck $(grep -lE '^#!/.+(ba)?sh$' $(git ls-files)) + - docker run -v $(pwd):/scripts --workdir=/scripts koalaman/shellcheck:latest $(grep -lE '^#!/.+(ba)?sh$' $(git ls-files)) matrix: fast_finish: true \ No newline at end of file