forked from Azure/azure-iot-sdk-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows_csharp.cmd
55 lines (44 loc) · 1.32 KB
/
windows_csharp.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
43
44
45
46
47
48
49
50
51
52
53
54
@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C# Shared Assembly --
cd %build-root%\shared\build
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
REM -- C# Device SDK --
cd %build-root%\device\build
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
REM -- C# Service SDK --
cd %build-root%\service\build
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
REM -- C# E2E Tests --
cd %build-root%\e2e\build
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
REM -- Device Explorer --
cd %build-root%\tools\DeviceExplorer\build
call build.cmd
if errorlevel 1 goto :eof
cd %build-root%
REM -- Run C# device SDK unit Tests --
cd %build-root%\device\tests\Microsoft.Azure.Devices.Client.Test\bin\Release
mstest /TestContainer:Microsoft.Azure.Devices.Client.Test.dll
if errorlevel 1 goto :eof
cd %build-root%
REM -- Run C# E2E Tests --
cd %build-root%\e2e\Microsoft.Azure.Devices.E2ETests\bin\Release
mstest /TestContainer:Microsoft.Azure.Devices.E2ETests.dll /resultsfile:testResults.trx
if errorlevel 1 goto :eof
cd %build-root%
echo.
echo C# build completed successfully
echo.