commit df8c9f39ac8538ff65c25bcf3c50b70b9a75f4c4 parent d7ee7caed4f1eb147ae4e9b0114dd6b01afa557f Author: Felix Bartels <felix@host-consultants.de> Date: Thu, 4 Jul 2019 15:59:50 +0200 add hadolint to travisfile Signed-off-by: Felix Bartels <felix@host-consultants.de> Diffstat:
M | .travis.yml | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/.travis.yml b/.travis.yml @@ -1,11 +1,20 @@ dist: xenial +env: + global: + - HADOLINT_VERSION=1.17.1 + language: rust rust: nightly cache: cargo +before_install: + - sudo curl -L https://github.com/hadolint/hadolint/releases/download/v$HADOLINT_VERSION/hadolint-$(uname -s)-$(uname -m) -o /usr/local/bin/hadolint + - sudo chmod +rx /usr/local/bin/hadolint + # Nothing to install install: true script: +- git ls-files --exclude='Dockerfile*' --ignored | xargs --max-lines=1 hadolint - cargo build --features "sqlite" - cargo build --features "mysql"