zuul-jobs/test-playbooks/shake/setup-project.yaml
Tristan Cacqueray b8e57ffc60 shake-build: add shake build system job
This change adds a new job to run the shake build system.

Change-Id: Iffaf4e0675d91033b1b5d66c52d501f6bdc8acaf
2020-05-28 12:48:16 +00:00

20 lines
622 B
YAML

- hosts: all
tasks:
- name: Setup shakefile
copy:
dest: "{{ zuul.project.src_dir }}/Shakefile.hs"
content: |
import Development.Shake
-- This Shakefile creates synthetic load using sha256sum on each .rst file
main :: IO ()
main = shakeArgs shakeOptions{shakeFiles="_build"} $ do
want [ "doc" ]
phony "doc" $ do
files <- getDirectoryFiles "" ["//*.rst"]
putNormal $ "Processing doc... with: " <> show files
need files
"//**.rst" %> \rst_file -> cmd_ "sha256sum " [rst_file]