[−][src]Crate rusty_ci
Re-exports
pub use helper::input; |
pub use helper::yes_or_no; |
pub use buildsystem::*; |
Modules
buildbot | |
buildsystem | |
helper | This crate can also be used as a library for other tools to generate buildbot projects |
Macros
blue | Write blue text to the console, and then reset color |
color_print | This prints a format string with a specific color. The color must be one of the following. |
debug | Prints debug message colored blue |
error | Prints error message colored red |
flush | Flush stdout |
green | Write green text to the console, and then reset color |
info | Prints info message colored green |
red | Write red text to the console, and then reset color |
warn | Prints warning message colored yellow |
yellow | Write yellow text to the console, and then reset color |
Structs
Builder | The Builder struct encapsulates all the operations involved in defining a builder in buildbot. A builder works by giving tasks called steps to workers. |
Cmd | This struct is basically identical to the std::process::Command, but when it is executed, it returns the stdout of the process as a string. |
File | A no-op struct that allows you to easily manipulate files. |
MailNotifier | This object is responsible for building the |
MasterConfig | This struct represents the configuration file for the master. This file contains the Python code for the builders and the schedulers. In addition, it contains some basic data such as the title for the web ui, the title url for the webui, and so on. |
MergeRequestHandler | The purpose of a continuous integration tool is to continuously confirm the validity and robustness of code. It follows then that you must check code BEFORE it is deployed. To do this, you must take the code that someone wants to merge into the repository, and test what the merged code would look like. This struct allows us to add this functionality to the output buildbot project. |
Scheduler | The scheduler struct controls when a builder is run. This is done when certain requirements specified by the scheduler are fulfilled. For example, you could define a scheduler that would trigger one or more builders when a file ending in ".py" is changed in a branch beginning with "fix/". |
Worker | This struct holds the information that is used to build the worker |
Enums
Step | This describes a step executed by a builder in buildbot This is used by the Builder struct to construct the Builder config file |
Constants
AUTH_TOKEN_PATH | This is the path to the file containing the auth / api token for the version control system |
Functions
unmatched_quotes | This function takes a Yaml object and confirms that there are no unmatched quotes! If there are unmatched quotes, it returns the line with unmatched quotes |
unquote | Unquotes |
unwrap | This function unwraps a Yaml object, takes its first value, and converts it into a string, and trims quotation marks. |