TravisCIEnvironmentInfo.

Travis Property

Summary

Gets a value indicating whether the environment is Travis.

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.