forked from TrenchBroom/TrenchBroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.bat
68 lines (43 loc) · 1.1 KB
/
appveyor.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
PATH=%PATH%;C:\Program Files (x86)\Pandoc;C:\Program Files\Cppcheck
REM Init submodules
git submodule update --init --recursive
REM Check versions
qmake -v
cmake --version
cppcheck --version
mkdir cmakebuild
cd cmakebuild
cmake .. -G"Visual Studio 15 2017" -DCMAKE_PREFIX_PATH="%QT5_INSTALL_DIR%" -T v141 -DCMAKE_BUILD_TYPE=Release
REM -DCMAKE_CXX_FLAGS=/WX
IF ERRORLEVEL 1 GOTO ERROR
cmake --build . --target cppcheck
IF ERRORLEVEL 1 GOTO ERROR_CPPCHECK
cmake --build . --config Release
IF ERRORLEVEL 1 GOTO ERROR
set BUILD_DIR="%cd%"
cd lib\vecmath\test\Release
vecmath-test.exe
IF ERRORLEVEL 1 GOTO ERROR
cd "%BUILD_DIR%"
cd common\test\Release
common-test.exe
IF ERRORLEVEL 1 GOTO ERROR
cd "%BUILD_DIR%"
cd common\benchmark\Release
common-benchmark.exe
IF ERRORLEVEL 1 GOTO ERROR
cd "%BUILD_DIR%"
cpack
IF ERRORLEVEL 1 GOTO ERROR
call generate_checksum.bat
GOTO END
:ERROR_CPPCHECK
echo.
echo "cppcheck detected issues, see below"
echo.
type common\cppcheck-errors.txt
echo.
:ERROR
echo "Building TrenchBroom failed"
exit /b 1
:END