Cake.TravisCI
by Rodney Littles II
Cake addin that extends the DSL with TravisCI aliases.
The TravisCI alias, which returns an ITravisCIProvider instance can be used to interact with the Travis CI environment.
The following example prints the build number if running on Travis CI:
if (BuildSystem.TravisCI.IsRunningOnTravisCI)
{
Information(BuildSystem.TravisCI.Environment.Build.BuildId);
}
else
{
Information("Not running on Travis CI");
}
See ITravisCIProvider for details and available methods to interact with Travis CI.