Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

Buildrunner Example Configurations

This directory contains example configuration files for Buildrunner, demonstrating various use cases and best practices. These examples serve as references for users looking to configure and execute Buildrunner effectively.

Running Buildrunner with Example Configuration Files

To run Buildrunner using an example configuration file, follow these steps from the root directory of the Buildrunner repository:

  1. Navigate to the Buildrunner repository directory

  2. Create a virtual environment (Recommended)**
    python -m venv .venv
    source .venv/bin/activate
  3. Install Buildrunner Requirements
    pip install -r requirements.txt
  4. Execute Buildrunner with a specified configuration file:
    ./run-buildrunner.sh  -f examples/<path-to-config-file>

    Example:

    ./run-buildrunner.sh -f examples/build/basic/buildrunner.yaml

Adding a New Example Configuration File

To contribute a new example configuration file, adhere to the following guidelines:

  1. File Location & Naming - Place the new file in the examples/ directory. - Ensure the filename ends with .buildrunner.yaml to allow automatic detection and execution by unit tests.
  2. Configuration Validity - The configuration file must contain a valid Buildrunner configuration. - It should execute successfully using the standard instructions provided in this repository without requiring any manual intervention.
  3. Documentation & Additional Files - If necessary, include a README.rst file in the same directory as the configuration file to provide additional details or instructions. - Any supporting files required for the configuration should be placed alongside the configuration file.

Following these best practices ensures consistency, maintainability, and ease of use for all contributors and users.

Excluding Example Configuration Files from Unit Tests

To exclude an example configuration file from unit tests, add the file path to the excluded_example_files list in tests/test_buildrunner_files.py.