xref: /openbmc/boost-dbus/Jenkinsfile (revision b976b5a4)
1b5f5bef4SEd Tanous#!groovy
2b5f5bef4SEd Tanous
3b5f5bef4SEd Tanous
4b5f5bef4SEd Tanousstage 'Debug Build'
5b5f5bef4SEd Tanoussh '''rm -rf build_debug
6b5f5bef4SEd Tanous	mkdir build_debug
7b5f5bef4SEd Tanous	cd build_debug
8b5f5bef4SEd Tanous	cmake .. -DCMAKE_BUILD_TYPE="Debug"
9b5f5bef4SEd Tanous	cmake --build .'''
10b5f5bef4SEd Tanous
11b5f5bef4SEd Tanousstage 'Debug Test'
12b5f5bef4SEd Tanoussh '''cd build_debug
13b5f5bef4SEd Tanous	dbus-launch ctest -V --output-on-failure'''
14b5f5bef4SEd Tanous
15b5f5bef4SEd Tanousstage 'Release Build'
16b5f5bef4SEd Tanoussh '''rm -rf build_release
17b5f5bef4SEd Tanous	mkdir build_release
18b5f5bef4SEd Tanous	cd build_release
19b5f5bef4SEd Tanous	cmake .. -DCMAKE_BUILD_TYPE="Release"
20b5f5bef4SEd Tanous	cmake --build .'''
21b5f5bef4SEd Tanous
22b5f5bef4SEd Tanousstage 'Release Test'
23b5f5bef4SEd Tanoussh '''cd build_release
24b5f5bef4SEd Tanous	dbus-launch ctest -V --output-on-failure'''
25*b976b5a4SEd Tanous
26