Commit 6f2e7cb5 authored by Romain's avatar Romain

Linting in travis

parent e3558be9
...@@ -26,10 +26,11 @@ jobs: ...@@ -26,10 +26,11 @@ jobs:
install: install:
- pip install --upgrade pip - pip install --upgrade pip
- make dev-env - make dev-env
- make-lint-install
script: script:
- set -e - set -e
- make docs - make docs
- make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1" - make lint-build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"
stages: stages:
- name: diff-test - name: diff-test
......
...@@ -82,6 +82,8 @@ lint/%: ## lint the dockerfile(s) for a stack ...@@ -82,6 +82,8 @@ lint/%: ## lint the dockerfile(s) for a stack
lint-all: $(foreach I,$(ALL_IMAGES),lint/$(I) ) ## lint all stacks lint-all: $(foreach I,$(ALL_IMAGES),lint/$(I) ) ## lint all stacks
lint-build-test-all: $(foreach I,$(ALL_IMAGES),lint/$(I) arch_patch/$(I) build/$(I) test/$(I) ) ## lint, build and test all stacks
lint-install: ## install hadolint lint-install: ## install hadolint
@echo "Installing hadolint at $(HADOLINT) ..." @echo "Installing hadolint at $(HADOLINT) ..."
@curl -sL -o $(HADOLINT) "https://github.com/hadolint/hadolint/releases/download/v1.17.6/hadolint-$(shell uname -s)-$(shell uname -m)" @curl -sL -o $(HADOLINT) "https://github.com/hadolint/hadolint/releases/download/v1.17.6/hadolint-$(shell uname -s)-$(shell uname -m)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment