zuul-jobs/roles/cabal-test/tasks/main.yaml
Tristan Cacqueray 7fdf0cc3ab cabal-test: add build target job variable
This change adds support for custom target and removes the
configure step which is not necessary.
This change also uses the copr of cabal-install to get
a more up-to-date version.

Change-Id: I538e2b24abb66181d1ead2779bf6aa3440ee58ff
2020-05-08 13:38:17 +00:00

15 lines
420 B
YAML

- name: Run cabal install {{ _cabal_install_args }}
command: "cabal install {{ _cabal_install_args }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Run cabal build {{ _cabal_build_args }}
command: "cabal build {{ _cabal_build_args }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Run cabal test {{ _cabal_test_args }}
command: "cabal test {{ _cabal_test_args }}"
args:
chdir: "{{ zuul_work_dir }}"