Skip to content

Commit

Permalink
Use the docker image of shellcheck for checking the scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
na-- committed Nov 16, 2017
1 parent b35f087 commit 3e09f59
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3e09f59

Please sign in to comment.