zuul-jobs/roles/test-setup
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
..
defaults Parameterize the test-setup role 2017-12-07 09:48:38 -05:00
tasks Parameterize the test-setup role 2017-12-07 09:48:38 -05:00
README.rst Parameterize the test-setup role 2017-12-07 09:48:38 -05:00

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

Environment variables to pass in to the test-setup script.

String of optional command line options passed to the test-setup script.