James Feist | 139cb57 | 2018-09-10 15:26:18 -0700 | [diff] [blame] | 1 | #!groovy |
2 | |||||
3 | |||||
4 | stage 'Debug Build' | ||||
5 | sh ''' | ||||
6 | rm -rf build_debug | ||||
7 | mkdir build_debug | ||||
8 | cd build_debug | ||||
9 | cmake .. -DCMAKE_BUILD_TYPE="Debug" -DHUNTER_ENABLED=1 -DEXTERNAL_PROJECT=1 | ||||
10 | cmake --build .''' | ||||
11 | |||||
12 | stage 'Debug Test' | ||||
13 | sh '''cd build_debug | ||||
14 | dbus-launch ctest -V --output-on-failure''' | ||||
15 | |||||
16 | stage 'Release Build' | ||||
17 | sh ''' | ||||
18 | rm -rf build_release | ||||
19 | mkdir build_release | ||||
20 | cd build_release | ||||
21 | cmake .. -DCMAKE_BUILD_TYPE="Release" -DHUNTER_ENABLED=1 -DEXTERNAL_PROJECT=1 | ||||
22 | cmake --build .''' | ||||
23 | |||||
24 | stage 'Release Test' | ||||
25 | sh '''cd build_release | ||||
26 | dbus-launch ctest -V --output-on-failure''' |