Summary
Gets a value indicating whether the environment is Travis.
- Namespace
- Cake
.Common .Build .TravisCI .Data - Containing Type
- Travis
C I Environment Info
Syntax
public bool Travis { get; }
Examples
if (BuildSystem.TravisCI.IsRunningOnTravisCI)
{
Information(
@"Travis: {0}",
BuildSystem.TravisCI.Environment.Travis
);
}
else
{
Information("Not running on TravisCI");
}
if (TravisCI.IsRunningOnTravisCI)
{
Information(
@"Travis: {0}",
TravisCI.Environment.Travis
);
}
else
{
Information("Not running on TravisCI");
}
Value
Type | Description |
---|---|
bool |
true if Travis; otherwise, false .
|