zuul-jobs/roles/haskell-stack-test/defaults/main.yaml
Tristan Cacqueray 16673b8dc1 haskell-stack-test: add build target job variable
This change adds support for custom target and adds a
separate build step to better report build failure, as
opposed to a single test failure.

Change-Id: I9e7a5e14b669dcbacd26861595358f6a4c04b585
2020-05-08 14:11:11 +00:00

8 lines
341 B
YAML

haskell_stack_target: ""
lts_version: ""
zuul_work_dir: "{{ zuul.project.src_dir }}"
_stack_resolver_args: "{% if lts_version %}--resolver {{ lts_version }}{% endif %}"
_stack_build_args: "{{ _stack_resolver_args }} --test --no-run-tests {{ haskell_stack_target }}"
_stack_test_args: "{{ _stack_resolver_args }} {{ haskell_stack_target }}"