-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
65 lines (65 loc) · 1.85 KB
/
.gitlab-ci.yml
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
# This file is generated by GitLab CI
Windows:
script:
- hostname
- /c/Multi-Runner/slowrunner.exe -v -2 -e "D:\CB\NiftyLinkContinuousBuild.bat"
tags:
- windows
except:
- tags
Mac:
script:
- 'echo -n "hostname: "'
- hostname
- ''
- cd ..
- if [ -d NiftyLink-SuperBuild ]; then
- rm -rf NiftyLink-SuperBuild
- fi
- mkdir -p NiftyLink-SuperBuild
- cd NiftyLink-SuperBuild
- echo Configuring external projects...
- cmake ../NiftyLink -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DSUPERBUILD_EXCLUDE_NIFTYLINKBUILD_TARGET:BOOL=ON
- echo Building external projects...
- make -j4
- echo Configuring NiftyLink project...
- cmake -DSUPERBUILD_EXCLUDE_NIFTYLINKBUILD_TARGET:BOOL=OFF .
- echo Building NiftyLink project...
- "# Note:"
- "# The 'true' command prevents this job script aborting in case the build fails."
- "# We want to see the build errors on CDash."
- make -j4 || true
- cd NiftyLink-build
- ctest -S CTestContinuous.cmake -V
tags:
- mac
except:
- tags
Linux:
script:
- 'echo -n "hostname: "'
- hostname
- ''
- cd ..
- if [ -d NiftyLink-SuperBuild ]; then
- rm -rf NiftyLink-SuperBuild
- fi
- mkdir -p NiftyLink-SuperBuild
- cd NiftyLink-SuperBuild
- cmake ../NiftyLink -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DNIFTYLINK_USE_KWSTYLE:BOOL=ON
-DNIFTYLINK_USE_CPPCHECK:BOOL=ON-DSUPERBUILD_EXCLUDE_NIFTYLINKBUILD_TARGET:BOOL=ON
- echo Building external projects...
- make -j4
- echo Configuring NiftyLink project...
- cmake -DSUPERBUILD_EXCLUDE_NIFTYLINKBUILD_TARGET:BOOL=OFF .
- echo Building NiftyLink project...
- "# Note:"
- "# The 'true' command prevents this job script aborting in case the build fails."
- "# We want to see the build errors on CDash."
- make -j4 || true
- cd NiftyLink-build
- ctest -S CTestContinuous.cmake -V
tags:
- linux
except:
- tags