---
sudo: required

language: shell

services:
  - docker

before_install:
  - docker pull koalaman/shellcheck

script:
 - find . -name '*.sh' | xargs docker run -v $(pwd):/mnt --rm koalaman/shellcheck-alpine

matrix:
  fast_finish: true

---
sudo: required

language: shell

services:
  - docker

script:
 - find . -type f -iname "*.sh" | while read -r line; do echo "Linting $line"; docker run -v "$(pwd)":/mnt --rm koalaman/shellcheck:v0.4.7 "$line"; done

matrix:
  fast_finish: true

Use while to loop over lintable shell scripts
Use while to loop over lintable shell scripts
