Merge "cabal-test: add install_args and build_args role var"

This commit is contained in:
Zuul 2021-03-17 12:31:44 +00:00 committed by Gerrit Code Review
commit 78f18243f1
2 changed files with 12 additions and 2 deletions

View File

@ -6,6 +6,14 @@ Run the cabal test command.
The cabal target(s) to test. The cabal target(s) to test.
.. zuul:rolevar:: cabal_install_args
Install command line arguments, for example to skip executable using "--lib".
.. zuul:rolevar:: cabal_build_args
Build command line arguments, for example to write hie files using "-fwrite-ide-info".
.. zuul:rolevar:: zuul_work_dir .. zuul:rolevar:: zuul_work_dir
:default: {{ zuul.project.src_dir }} :default: {{ zuul.project.src_dir }}

View File

@ -1,7 +1,9 @@
cabal_target: "" cabal_target: ""
cabal_install_args: ""
cabal_build_args: ""
zuul_work_dir: "{{ zuul.project.src_dir }}" zuul_work_dir: "{{ zuul.project.src_dir }}"
_cabal_install_args: "--only-dependencies {{ cabal_target }}" _cabal_install_args: "--only-dependencies {{ cabal_install_args }} {{ cabal_target }}"
_cabal_build_args: "--enable-tests {{ cabal_target }}" _cabal_build_args: "--enable-tests {{ cabal_build_args }} {{ cabal_target }}"
_cabal_test_args: "{{ cabal_target }}" _cabal_test_args: "{{ cabal_target }}"