forked from NLog/NLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.ps1
58 lines (44 loc) · 2.12 KB
/
run-tests.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
if(.\Test-XmlFile.ps1){
Write-Output "Valid XSD"
}else {
exit 400;
}
dotnet restore .\src\NLog\
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet restore .\tests\NLogAutoLoadExtension\
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet restore .\tests\SampleExtensions\
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
msbuild /t:Build /p:Configuration=Release /p:DebugType=Full .\tests\NLogAutoLoadExtension\ /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
msbuild /t:Build /p:Configuration=Release /p:DebugType=Full .\tests\SampleExtensions\ /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
msbuild /t:Restore,Build /p:Configuration=Release /p:DebugType=Full .\tests\NLog.UnitTests\ /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet test .\tests\NLog.UnitTests\ --configuration release --framework netcoreapp2.0 --no-build
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
msbuild /t:Build /p:targetFramework=net452 .\tests\NLog.UnitTests\ /p:Configuration=Release /p:DebugType=Full /p:TestTargetFramework=net35 /p:OutputPath=.\bin\release\net35 /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
& ${env:xunit20}\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\release\net35\NLog.UnitTests.dll -appveyor -noshadow
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
msbuild /t:Build /p:targetFramework=net452 .\tests\NLog.UnitTests\ /p:Configuration=Release /p:DebugType=Full /p:TestTargetFramework=net40-client /p:OutputPath=.\bin\release\net40 /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
& ${env:xunit20}\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\release\net40\NLog.UnitTests.dll -appveyor -noshadow
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
msbuild /t:Build /p:Configuration=Debug /p:DebugType=Full .\tests\NLog.UnitTests\ /verbosity:minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
& ${env:xunit20}\xunit.console.x86.exe .\tests\NLog.UnitTests\bin\debug\net452\NLog.UnitTests.dll -appveyor -noshadow
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }