Struct rci::Ci
[−]
[src]
pub struct Ci { /* fields omitted */ }
Methods
impl Ci
[src]
fn new() -> Option<Self>
fn which_ci() -> CiService
fn lang() -> Option<String>
Returns the locale setting, g.e. en_US.UTF-8
.
fn path() -> Option<String>
Returns the search path.
fn home() -> Option<String>
Returns the path to the users home directory.
fn is_travis(&self) -> bool
fn is_circle(&self) -> bool
fn branch(&self) -> Option<String>
fn build_url(&self) -> Option<String>
Circle only A permanent link to the current build, for example, https://circleci.com/gh/circleci/frontend/933
fn build_id(&self) -> Option<String>
Returns the build number. TODO: convert this to a number.
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?
fn commit(&self) -> Option<String>
The sha1 hash of the commit being tested.
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.
fn dart(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn go(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn haxe(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn java(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn julia(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn node(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn otp(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn perl(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn php(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn python(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn r(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn ruby(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn rust(&self) -> Option<String>
Travis only: Returns the version of the language that is used.
fn scala(&self) -> Option<String>
Travis only: Returns the version of the language that is used.