sudo: required

services:
  - docker

script:
  - |
    set -e
    for path in `find . -name Dockerfile`; do
        echo $path
        docker run --rm -i pdericson/hadolint < $path
    done
  - |
    set -e
    for path in `find . -name \*.sh`; do
        echo $path
        docker run --rm -i -v "$PWD":/mnt lukasmartinelli/hadolint shellcheck /mnt/$path
    done

sudo: required

services:
  - docker

script:
  - |
    set -e
    for path in `find . -name Dockerfile`; do
        echo $path
        docker run --rm -i lukasmartinelli/hadolint < $path
    done
  - |
    set -e
    for path in `find . -name \*.sh`; do
        echo $path
        docker run --rm -i -v "$PWD":/mnt lukasmartinelli/hadolint shellcheck /mnt/$path
    done

Fix hadolint path to run from lukasmartinelli docker hub user
Fix hadolint path to run from lukasmartinelli docker hub user
