aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-11-18 17:25:34 +0100
committerGravatar Johannes Christ <[email protected]>2018-11-18 17:25:34 +0100
commit06d328db3fb03d813b5db1c019a350c20953b8a3 (patch)
tree0e14466a328f7cce775be9228c02f83cb82d4630 /azure-pipelines.yml
parentRemove obsolete GitLab CI configuration. (diff)
Set up markdown & Dockerfile lints.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml28
1 files changed, 26 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 694ff88a..90232430 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -1,8 +1,32 @@
# https://aka.ms/yaml
jobs:
- - job: lint
- displayName: Lint
+ - job: lint_misc
+ displayName: Lint others
+ pool:
+ vmImage: ubuntu-16.04
+
+ steps:
+ - script: |
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+ sudo add-apt-repository deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
+ sudo apt-get update
+ sudo apt-get install docker-ce
+ displayName: install docker
+
+ - script: docker run -v $(pwd):/app:ro --rm ruby:alpine /bin/ash -c "gem install mdl && cd /app && mdl"
+ displayName: run markdownlint
+
+ - script: |
+ echo 'set -ex' > script.sh
+ echo 'for dockerfile in docker/**/**/**/Dockerfile; do' >> script.sh
+ echo ' docker run -i hadolint/hadolint hadolint --ignore DL3008 --ignore DL3018 - < $dockerfile' >> script.sh
+ echo 'done' >> script.sh
+ sh script.sh
+ displayName: run hadolint
+
+ - job: lint_python
+ displayName: Lint Python
pool:
vmImage: ubuntu-16.04