fix travis RID detection in KoreBuild

This commit is contained in:
Andrew Stanton-Nurse 2015-12-17 16:29:03 -08:00
parent e27ce7b512
commit c72ba87878
1 changed files with 16 additions and 0 deletions

View File

@ -38,6 +38,22 @@ default NUGET_FEED = 'https://api.nuget.org/v3/index.json'
}
Log.Info("Build v2: " + IsBuildV2);
// Temporary until KoreBuild is updated
// It looks like it isn't possible to do this in .travis.yml because we only want
// to do it on Linux and I couldn't find an easy way to do that kind of selective
// environment variable set.
if(E('TRAVIS') == "true")
{
if(CanBuildForLinux)
{
E('DNX_RUNTIME_ID', 'ubuntu.14.04-x64');
}
else
{
E('DNX_RUNTIME_ID', 'osx.10.10-x64');
}
}
}
#restore-npm-modules