zuul-jobs/roles/test-setup/README.rst
Kenneth Giusti 1eafcaabbb Parameterize the test-setup role
The patch will allow jobs to set environment variables and pass
command line arguments to the test-setup.sh script defined by a
project.

This can be used to customize the setup based on the particular job
being run.

Change-Id: I11e1ab15fd2bf3c734544121d9b4040b99ee63da
2017-12-07 09:48:38 -05:00

23 lines
677 B
ReStructuredText

Perform project test setup tasks.
This role assumes that Zuul has checked out a change for a project at
``src/{{ zuul.project.canonical_name }}`` and looks for a file named
``tools/test-setup.sh``. If that file exists and is executable, it will
be run.
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.
**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.