aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.hadolint.yaml7
-rw-r--r--.travis.yml4
2 files changed, 11 insertions, 0 deletions
diff --git a/.hadolint.yaml b/.hadolint.yaml
new file mode 100644
index 000000000..416099d45
--- /dev/null
+++ b/.hadolint.yaml
@@ -0,0 +1,7 @@
+ignored:
+ # ignore apt version pinning
+ - DL3008
+ # ignore pip version pinning
+ - DL3013
+ # ignore apk version pinning
+ - DL3018
diff --git a/.travis.yml b/.travis.yml
index ee510ee84..b5682ace7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -43,10 +43,14 @@ matrix:
- "node"
php:
# none
+ env:
+ - HADOLINT="$HOME/hadolint"
install:
- npm install jshint
+ - curl -sLo "$HADOLINT" $(curl -s https://api.github.com/repos/hadolint/hadolint/releases/latest?access_token="$GITHUB_TOKEN" | jq -r '.assets | .[] | select(.name=="hadolint-Linux-x86_64") | .browser_download_url') && chmod 700 ${HADOLINT}
script:
- node_modules/jshint/bin/jshint .
+ - git ls-files --exclude='*Dockerfile*' --ignored | xargs --max-lines=1 "$HADOLINT"
allow_failures:
- env: CHECK_TRANSLATION=yes VALIDATE_STANDARD=no
- dist: precise