-
Notifications
You must be signed in to change notification settings - Fork 168
/
job-1-wincmake.bat
51 lines (37 loc) · 1.27 KB
/
job-1-wincmake.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
REM
REM Copyright © 2012-2023 Inria. All rights reserved.
REM See COPYING in top-level directory.
REM
call %JENKINS_CONFIG_DIR%\\ciprofile.bat
set TARBALL=%1
set BASENAME=%TARBALL:~0,-7%
REM reduce the build path name to avoid issues with very long file names in cmake/nmake
set SHORTNAME=%BASENAME:~-9%
echo ###############################
echo Running on:
hostname
ver
echo Tarball: %TARBALL%
echo Build short name: %SHORTNAME%
echo ############################
sh -c "tar xfz %TARBALL%"
if %errorlevel% neq 0 exit /b %errorlevel%
move %BASENAME% %SHORTNAME%
if %errorlevel% neq 0 exit /b %errorlevel%
cd %SHORTNAME%\contrib\windows-cmake
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --install-prefix=%cd%/install -DCMAKE_BUILD_TYPE=Release -B build
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --build build --parallel
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --install build
if %errorlevel% neq 0 exit /b %errorlevel%
install\bin\lstopo-no-graphics.exe -v
if %errorlevel% neq 0 exit /b %errorlevel%
install\bin\lstopo-no-graphics.exe --windows-processor-groups
if %errorlevel% neq 0 exit /b %errorlevel%
install\bin\hwloc-info.exe --support
if %errorlevel% neq 0 exit /b %errorlevel%
ctest --test-dir build -V
if %errorlevel% neq 0 exit /b %errorlevel%
exit /b 0