-
Notifications
You must be signed in to change notification settings - Fork 151
/
run-tests.ps1
30 lines (24 loc) · 1 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
dotnet restore test/NLog.Extensions.Logging.Tests -v minimal
dotnet restore test/NLog.Extensions.Hosting.Tests -v minimal
dotnet build test/NLog.Extensions.Logging.Tests --configuration release -v minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet build test/NLog.Extensions.Hosting.Tests --configuration release -v minimal
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet test test/NLog.Extensions.Logging.Tests --configuration release
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet test test/NLog.Extensions.Hosting.Tests --configuration release
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }
dotnet restore
dotnet list ./ package --vulnerable --include-transitive | findstr /S /c:"has the following vulnerable packages"
if (-Not $LastExitCode -eq 1)
{
dotnet list ./ package --vulnerable --include-transitive
exit 1
}
dotnet publish -r win-x64 -c release --self-contained .\examples\NetCore2\HostingExample
if (-Not $LastExitCode -eq 0)
{ exit $LastExitCode }