forked from Autodesk/Neon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVerifyNeonPRWindows.bat
More file actions
29 lines (27 loc) · 794 Bytes
/
VerifyNeonPRWindows.bat
File metadata and controls
29 lines (27 loc) · 794 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
@echo off
IF %1.==. GOTO Usage
set starting_dir=%CD%
mkdir temp
cd temp
set PR=%1
git clone https://github.com/Autodesk/Neon.git
cd Neon
git fetch origin refs/pull/%PR%/head:pull_%PR%
git checkout pull_%PR%
mkdir build
cd build
cmake ..
cmake --build . --config Release -j 10
set ctest_filename=CTestNeonWindowsReport.log
ctest --no-compress-output --output-on-failure -T Test --build-config Release --output-log %ctest_filename%
echo "******************************"
echo "Test final report location: %starting_dir%\temp\Neon\build\%ctest_filename%"
echo "******************************"
cd %starting_dir%
GOTO end
:Usage
echo "******************************"
echo "Pull Request ID is missing. Usage: "
echo ">> VerifyNeonPRWindows.bat ID"
echo "******************************"
:end