blob: c4f6c7a1cdb0090e1d565c5421958b9fca8293f6 [file] [log] [blame]
James Feist139cb572018-09-10 15:26:18 -07001#!groovy
2
3
4stage '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
12stage 'Debug Test'
13 sh '''cd build_debug
14 dbus-launch ctest -V --output-on-failure'''
15
16stage '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
24stage 'Release Test'
25 sh '''cd build_release
26 dbus-launch ctest -V --output-on-failure'''