Struct ci_detective::travis::Travis [] [src]

pub struct Travis {
    pub allow_failure: bool,
    pub branch: String,
    pub build_dir: PathBuf,
    pub build_id: String,
    pub build_number: usize,
    pub commit: String,
    pub commit_message: String,
    pub commit_range: Option<String>,
    pub event_type: EventType,
    pub job_id: String,
    pub job_number: String,
    pub os: Option<OS>,
    pub osx_image: Option<String>,
    pub pull_request: Option<String>,
    pub pull_request_branch: Option<String>,
    pub pull_request_sha: Option<String>,
    pub pull_request_slug: Option<String>,
    pub repo_slug: String,
    pub secure_env_vars: bool,
    pub sudo: bool,
    pub tag: Option<String>,
    pub dart_version: Option<String>,
    pub go_version: Option<String>,
    pub haxe_version: Option<String>,
    pub jdk_version: Option<String>,
    pub julia_version: Option<String>,
    pub node_version: Option<String>,
    pub otp_release: Option<String>,
    pub perl_version: Option<String>,
    pub php_version: Option<String>,
    pub python_version: Option<String>,
    pub r_version: Option<String>,
    pub ruby_version: Option<String>,
    pub rust_version: Option<String>,
    pub scala_version: Option<String>,
    pub xcode_sdk: Option<String>,
    pub xcode_scheme: Option<String>,
    pub xcode_project: Option<String>,
    pub xcode_workspace: Option<String>,
    // some fields omitted
}

Fields

  • set to true if the job is allowed to fail.
  • set to false if the job is not allowed to fail.
  • for push builds, or builds not triggered by a pull request, this is the name of the branch.
  • for builds triggered by a pull request this is the name of the branch targeted by the pull request.
  • for builds triggered by a tag, this is the same as the name of the tag (TRAVIS_TAG).

Note that for tags, git does not store the branch from which a commit was tagged.

The absolute path to the directory where the repository being built has been copied on the worker.

The id of the current build that Travis CI uses internally.

The number of the current build (for example, 4).

The commit that the current build is testing.

The commit subject and body, unwrapped.

The range of commits that were included in the push or pull request. (Note that this is empty for builds triggered by the initial commit of a new branch.)

Indicates how the build was triggered.

The id of the current job that Travis CI uses internally.

The number of the current job (for example, 4.1).

On multi-OS builds, this value indicates the platform the job is running on.

The osx_image value configured in .travis.yml. If this is not set in .travis.yml, it is emtpy.

The pull request number if the current job is a pull request.

If the current job is a pull request, the name of the branch from which the PR originated.

if the current job is a pull request, the commit SHA of the HEAD commit of the PR.

if the current job is a pull request, the slug (in the form owner_name/repo_name) of the repository from which the PR originated.

The slug (in form: owner_name/repo_name) of the repository currently being built.

  • set to true if there are any encrypted environment variables.
  • set to false if no encrypted environment variables are available.

true or false based on whether sudo is enabled.

If the current build is for a git tag, this variable is set to the tag’s name.

The current version of dart being used to run the build (if any).

The current version of go being used to run the build (if any).

The current version of haxe being used to run the build (if any).

The current version of jdk being used to run the build (if any).

The current version of julia being used to run the build (if any).

The current version of node being used to run the build (if any).

The current version of otp being used to run the build (if any).

The current version of perl being used to run the build (if any).

The current version of php being used to run the build (if any).

The current version of python being used to run the build (if any).

The current version of r being used to run the build (if any).

The current version of ruby being used to run the build (if any).

The current version of rust being used to run the build (if any).

The current version of scala being used to run the build (if any).

The current XCode SDK being used to run the build (if any).

The current XCode Scheme being used to run the build (if any).

The current XCode Project being used to run the build (if any).

The current XCode Workspace being used to run the build (if any).

Methods

impl Travis
[src]

[src]

Construct this provider's information from the environment.

Trait Implementations

impl Clone for Travis
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Travis
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Travis

impl Sync for Travis