From 4df23ae7c2032e0da35ce0d2acd111f5cb61371b Mon Sep 17 00:00:00 2001 From: hal-ler Date: Thu, 14 Apr 2016 17:46:22 +0200 Subject: [PATCH] Restricted Mono archiving logic to Travis. --- build.cake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.cake b/build.cake index 619bf3c9c1..e37d7c06b5 100644 --- a/build.cake +++ b/build.cake @@ -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 + 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; }