[][src]Crate rusty_ci

Re-exports

pub use helper::input;
pub use helper::yes_or_no;
pub use buildsystem::*;

Modules

buildbot
buildsystem
helper

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.

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
Worker

This struct holds the information that is used to build the worker buildbot.tac file Each worker has:

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

unwrap

This function unwraps a Yaml object, takes its first value, and converts it into a string, and trims quotation marks.