TravisCIEnvironmentInfo Class

Summary

Provides Travis CI environment information for the current build.
Namespace
Cake.Common.Build.TravisCI.Data
Base Types
graph BT Type-->Base0["TravisCIInfo"] click Base0 "/api/Cake.Common.Build.TravisCI/TravisCIInfo" Base0-->Base1["object"] Type["TravisCIEnvironmentInfo"] class Type type-node

Syntax

public sealed class TravisCIEnvironmentInfo : TravisCIInfo

Constructors

Name Summary
TravisCIEnvironmentInfo(ICakeEnvironment) Initializes a new instance of the TravisCIEnvironmentInfo class.

Properties

Name Value Summary
Build TravisCIBuildInfo
Gets Travis CI build information for the current build.
CI bool
Gets a value indicating whether the current build is continuous integration.
Home string
Gets the Travis CI home directory.
Job TravisCIJobInfo
Gets Travis CI job information for the current build.
PullRequest TravisCIPullRequestInfo
Gets Travis CI pull request information.
Repository TravisCIRepositoryInfo
Gets Travis CI repository information for the current build.
Travis bool
Gets a value indicating whether the environment is Travis.

Methods

Name Value Summary
GetEnvironmentBoolean(string) bool
Gets an environment variable as a bool.
Inherited from TravisCIInfo
GetEnvironmentInteger(string) int
Gets an environment variable as a int.
Inherited from TravisCIInfo
GetEnvironmentString(string) string
Gets an environment variable as a string.
Inherited from TravisCIInfo

Extension Methods

Name Value Summary
Dump<TravisCIEnvironmentInfo>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TravisCIEnvironmentInfo>(TravisCIEnvironmentInfo[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TravisCIEnvironmentInfo>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<TravisCIEnvironmentInfo>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<TravisCIEnvironmentInfo>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<TravisCIEnvironmentInfo>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin