Skip to content

Commit

Permalink
Restricted Mono archiving logic to Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
hal-ler committed Apr 14, 2016
1 parent 6bcaa56 commit 4df23ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,13 @@ Task("OnlyPublish")
}

var buildIdentifier = $"{runtimeShort}-{framework}";
// Linux + net451 is renamed to Mono
if (runtimeShort.Contains("ubuntu-") && framework.Equals("net451"))
// Travis/Linux + default + net451 is renamed to Mono
if (string.Equals(EnvironmentVariable("TRAVIS_OS_NAME"), "linux") && runtime.Equals("default") && framework.Equals("net451"))
{
buildIdentifier ="linux-mono";
}
// No need to package for <!win> + net451
else if (!runtimeShort.Contains("win-") && framework.Equals("net451"))
// No need to archive for other Travis + net451 combinations
else if (EnvironmentVariable("TRAVIS_OS_NAME") != null && framework.Equals("net451"))
{
continue;
}
Expand Down

0 comments on commit 4df23ae

Please sign in to comment.