-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.bat
More file actions
36 lines (28 loc) · 1019 Bytes
/
Copy pathci.bat
File metadata and controls
36 lines (28 loc) · 1019 Bytes
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
@echo off
setlocal
cd /d "%~dp0"
echo [1/5] restore...
dotnet restore SysmacDataTraceViewer.sln
if errorlevel 1 goto :error
echo [2/5] build...
dotnet build SysmacDataTraceViewer.sln -c Release --no-restore -warnaserror
if errorlevel 1 goto :error
echo [3/5] test...
dotnet test SysmacDataTraceViewer.sln -c Release --no-build --verbosity normal
if errorlevel 1 goto :error
echo [4/5] format and analyzer checks...
dotnet format SysmacDataTraceViewer.sln whitespace --verify-no-changes --no-restore
if errorlevel 1 goto :error
dotnet format SysmacDataTraceViewer.sln style --verify-no-changes --severity warn --no-restore
if errorlevel 1 goto :error
dotnet format SysmacDataTraceViewer.sln analyzers --verify-no-changes --severity warn --no-restore
if errorlevel 1 goto :error
echo [5/5] publish smoke test...
call build.bat win-x64 artifacts\ci
if errorlevel 1 goto :error
if not exist artifacts\ci\SysmacDataTraceViewer.exe goto :error
echo CI checks passed.
exit /b 0
:error
echo CI checks failed.
exit /b 1