Permalink
Browse files

Hadolint

  • Loading branch information...
dahlia committed Feb 13, 2018
1 parent e05ee16 commit 10ec9ae5c75e4e8d5ec7565dfa8e8e798d86ea0d
Showing with 22 additions and 0 deletions.
  1. +8 −0 .travis.yml
  2. +14 −0 lint.sh
@@ -105,10 +105,18 @@ install:
python3 -m easy_install --user -U "pip>=$PIP_MINVER"
fi
- python3 -m pip install --user --upgrade tox
- travis_long stack --no-terminal setup
- travis_long stack --no-terminal install scan -j4
- travis_long stack --no-terminal install -j4 --only-dependencies
- |
if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
curl -L -o "$HOME/.local/bin/hadolint" \
https://github.com/hadolint/hadolint/releases/download/v1.4.0/hadolint-Linux-x86_64
chmod +x "$HOME/.local/bin/hadolint"
fi
script:
- 'TOX="$(which tox)" stack --no-terminal test -j4 --coverage'
- ./lint.sh
14 lint.sh
@@ -50,3 +50,17 @@ else
echo " https://github.com/koalaman/shellcheck"
fi
fi
if which hadolint > /dev/null; then
hadolint Dockerfile
else
echo "Seems hadolint is not installed; skipped linting Dockerfile..."
echo "Recommend to install hadolint:"
if which pacman > /dev/null; then
echo " pacman -S hadolint-git"
elif which brew > /dev/null; then
echo " brew install hadolint"
else
echo " https://github.com/hadolint/hadolint"
fi
fi

0 comments on commit 10ec9ae

Please sign in to comment.