-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.cmd
42 lines (37 loc) · 1.73 KB
/
build.cmd
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
pushd src\SymbolCollector.Android\
dotnet publish -c Release
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
popd
pushd src\SymbolCollector.Server\
:Restore packages, builds it, runs smoke-test.
dotnet run -c release -- --smoke-test
dotnet publish -c release -o publish --no-build
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
popd
pushd test\SymbolCollector.Server.Tests\
dotnet test -c Release --collect:"XPlat Code Coverage" --settings ..\coverletArgs.runsettings
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
popd
pushd test\SymbolCollector.Console.Tests\
dotnet test -c Release --collect:"XPlat Code Coverage" --settings ..\coverletArgs.runsettings
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
popd
pushd test\SymbolCollector.Core.Tests\
dotnet test -c Release --collect:"XPlat Code Coverage" --settings ..\coverletArgs.runsettings
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
popd
pushd src\SymbolCollector.Console\
:Smoke test the console app
dotnet run -c release -- ^
--check ..\..\test\TestFiles\System.Net.Http.Native.dylib ^
| find "c5ff520a-e05c-3099-921e-a8229f808696"
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
dotnet publish -c release /p:PublishSingleFile=true --self-contained -r osx-x64 -o osx-x64
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
dotnet publish -c release /p:PublishSingleFile=true --self-contained -r linux-x64 -o linux-x64
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
dotnet publish -c release /p:PublishSingleFile=true --self-contained -r linux-musl-x64 -o linux-musl-x64
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
dotnet publish -c release /p:PublishSingleFile=true --self-contained -r linux-arm -o linux-arm
if "%errorlevel%" NEQ "0" exit /b %errorlevel%
popd