Remove runtimeconfig.template.json and use repo.targets

This commit is contained in:
Nate McMaster 2017-02-16 16:05:51 -08:00
parent d9f5c82ecc
commit 4039126e16
6 changed files with 12 additions and 10 deletions

7
build/repo.targets Normal file
View File

@ -0,0 +1,7 @@
<Project>
<Target Name="TestNano" DependsOnTargets="Restore">
<MSBuild Targets="VSTest"
Projects="$(MSBuildThisFileDirectory)..\test\E2ETests\E2ETests.csproj"
Properties="Configuration=$(Configuration);VSTestLogger=trx;VSTestTestCaseFilter=E2ETests=NanoServer" />
</Target>
</Project>

View File

@ -1,8 +1,7 @@
use-standard-lifecycle
k-standard-goals
#run-nano-tests .initialize
#run-nano-tests
@{
var e2eTestsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "test", "E2ETests");
Dotnet("test --logger:trx --filter E2ETests=NanoServer --configuration " + E("Configuration"), e2eTestsDirectory);
MSBuild("/t:TestNano");
}

View File

@ -1,5 +0,0 @@
{
"configProperties": {
"System.GC.Server": true
}
}

View File

@ -6,6 +6,7 @@
<TargetFramework>netcoreapp1.1</TargetFramework>
<UserSecretsId>MusicStore.E2ETests</UserSecretsId>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ServerGarbageCollection>true</ServerGarbageCollection>
<RuntimeIdentifiers>win7-x86;win7-x64;osx.10.10-x64;osx.10.11-x64;ubuntu.14.04-x64;ubuntu.14.10-x64;ubuntu.15.04-x64;ubuntu.16.04-x64;centos.7-x64;debian.8-x64</RuntimeIdentifiers>
</PropertyGroup>

View File

@ -1,3 +1,3 @@
using Xunit;
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)]

View File

@ -4,7 +4,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp1.1;net451</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'!='Windows_NT'">netcoreapp1.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netcoreapp1.1</TargetFrameworks>
<RuntimeIdentifier Condition="'$(TargetFramework)'!='netcoreapp1.1'">win7-x64</RuntimeIdentifier>
</PropertyGroup>