2017-06-08 16:06:51 -07:00
|
|
|
Perform project test setup tasks.
|
|
|
|
|
|
|
|
This role assumes that Zuul has checked out a change for a project at
|
2019-06-24 15:53:52 -07:00
|
|
|
``{{ zuul_work_dir }}`` and looks for a file named
|
|
|
|
``tools/test-setup.sh``. If that file exists and is executable, it
|
|
|
|
will be run.
|
2017-06-08 16:06:51 -07:00
|
|
|
|
|
|
|
This allows projects to specify test-setup steps (such as creating or
|
|
|
|
initializing a database) in a form that can be easily run by both an
|
|
|
|
automated testing system and developers.
|
2017-10-10 11:02:55 -04:00
|
|
|
|
|
|
|
**Role Variables**
|
|
|
|
|
|
|
|
.. zuul:rolevar:: test_setup_environment
|
|
|
|
|
|
|
|
Environment variables to pass in to the test-setup script.
|
|
|
|
|
|
|
|
.. zuul:rolevar:: test_setup_args
|
|
|
|
|
|
|
|
String of optional command line options passed to
|
|
|
|
the test-setup script.
|
|
|
|
|
2019-07-10 09:22:30 -07:00
|
|
|
.. zuul:rolevar:: test_setup_skip
|
|
|
|
:default: false
|
|
|
|
|
|
|
|
Set this to true to skip running the test-setup script even if it
|
|
|
|
exists.
|
|
|
|
|
2019-06-24 15:53:52 -07:00
|
|
|
.. zuul:rolevar:: zuul_work_dir
|
|
|
|
:default: {{ zuul.project.src_dir }}
|
|
|
|
|
|
|
|
The directory in which to look for the setup script.
|
|
|
|
|