b8e57ffc60
This change adds a new job to run the shake build system. Change-Id: Iffaf4e0675d91033b1b5d66c52d501f6bdc8acaf
20 lines
622 B
YAML
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]
|