forked from CCSI-Toolset/SimSinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
40 lines (34 loc) · 1.35 KB
/
make.bat
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
REM SimSinter make.bat
REM
REM This make file is a reproduction of how SimSinter was being
REM built on Jenkins at LBNL. It has been tested on:
REM - 32 bit Windows 7 installation (required)
REM
REM Pre-requisites:
REM - CMake 3.9
REM - Microsoft Vistual 11.0
REM - Microsoft .NET v4.030319
REM - NuGet Package Manager
REM - Wix Toolset v3.10
REM Copy installer files to local directory
copy "C:\Program Files\Common files\Merge Modules\Microsoft_VC110_CRT_x86.msm" Master\CCSIUnitsInstaller
copy "C:\Program Files\Common files\Merge Modules\Microsoft_VC110_ATL_x86.msm" Master\CCSIUnitsInstaller
REM Compile the UC2 udunits2 library
cd Master\UC2\udunits2
cmake clean .
cmake --build . --config Release
cd ..\..\..
REM Get SimSinter dependencies
REM nuget.exe must be in the PATH
nuget.exe restore Master
REM Compile the SimSinter project
REM MSBuild.exe must be in the PATH
MSBuild.exe /t:Clean Master\SimSinter.sln
MSBuild.exe /p:Configuration=Release Master\SimSinter.sln
REM Run the Tests
REM MSTest.exe must be in the PATH
REM Delete the previous test results
if EXIST SimSinter-Build.trx. (
del SimSinter-Build.trx
)
MSTest.exe /resultsfile:SimSinter-Build.trx /test:SinterRegressionTests.SinterInputTests.ParseVariableTest /testcontainer:C:\Jenkins\workspace\SimSinter\Master\SinterRegressionTests\bin\Release\SinterRegressionTests.dll