TravisCIEnvironmentInfo.

CI Property

Summary

Gets a value indicating whether the current build is continuous integration.

Syntax

public bool CI { get; }

Examples

if (BuildSystem.TravisCI.IsRunningOnTravisCI)
{
    Information(
        @"CI: {0}",
        BuildSystem.TravisCI.Environment.CI
        );
}
else
{
    Information("Not running on TravisCI");
}
if (TravisCI.IsRunningOnTravisCI)
{
    Information(
        @"CI: {0}",
        TravisCI.Environment.CI
        );
}
else
{
    Information("Not running on TravisCI");
}

Value

Type Description
bool true if ci; otherwise, false.