pub struct Ci { /* private fields */ }
Implementations§
Source§impl Ci
impl Ci
pub fn new() -> Option<Self>
pub fn which_ci() -> CiService
pub fn is_travis(&self) -> bool
pub fn is_circle(&self) -> bool
pub fn branch(&self) -> Option<String>
Sourcepub fn build_url(&self) -> Option<String>
pub fn build_url(&self) -> Option<String>
Circle only A permanent link to the current build, for example, https://circleci.com/gh/circleci/frontend/933
Sourcepub fn build_id(&self) -> Option<String>
pub fn build_id(&self) -> Option<String>
Returns the build number. TODO: convert this to a number.
Sourcepub fn build_dir(&self) -> Option<String>
pub fn build_dir(&self) -> Option<String>
Travis only: The absolute path to the directory where the repository being built has been copied on the worker. TODO: Return a filesystem path instead?
Sourcepub fn pull_request(&self) -> Option<String>
pub fn pull_request(&self) -> Option<String>
The number of the pull request this build forms part of.
If this build is not part of a pull request, None
is returned.
TODO: convert this to a number.
Sourcepub fn dart(&self) -> Option<String>
pub fn dart(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn go(&self) -> Option<String>
pub fn go(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn haxe(&self) -> Option<String>
pub fn haxe(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn java(&self) -> Option<String>
pub fn java(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn julia(&self) -> Option<String>
pub fn julia(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn node(&self) -> Option<String>
pub fn node(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn otp(&self) -> Option<String>
pub fn otp(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn perl(&self) -> Option<String>
pub fn perl(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn php(&self) -> Option<String>
pub fn php(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn python(&self) -> Option<String>
pub fn python(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn r(&self) -> Option<String>
pub fn r(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
Sourcepub fn ruby(&self) -> Option<String>
pub fn ruby(&self) -> Option<String>
Travis only: Returns the version of the language that is used.