From 18ab4e5c0f727686cd9abada132903c7b075e2df Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: May 09 2019 11:37:22 +0000 Subject: Add zuul configuration --- diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..8604657 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,16 @@ +--- +- job: + name: haskell-lint + description: Run hlint + run: playbooks/hlint/run.yaml + post-run: playbooks/hlint/post.yaml + failure-url: report.html + files: .*.(hs|lhs) + +- project: + check: + jobs: + - haskell-lint + gate: + jobs: + - noop diff --git a/playbooks/hlint/post.yaml b/playbooks/hlint/post.yaml new file mode 100644 index 0000000..1434232 --- /dev/null +++ b/playbooks/hlint/post.yaml @@ -0,0 +1,8 @@ +--- +- hosts: all + tasks: + - name: Copy the report + synchronize: + src: "{{ zuul.project.src_dir }}/report.html" + dest: "{{ zuul.executor.log_root }}/report.html" + mode: pull diff --git a/playbooks/hlint/run.yaml b/playbooks/hlint/run.yaml new file mode 100644 index 0000000..f775c82 --- /dev/null +++ b/playbooks/hlint/run.yaml @@ -0,0 +1,7 @@ +--- +- hosts: all + tasks: + - name: Run hlint + command: hlint --report . + args: + chdir: "{{ zuul.project.src_dir }}"