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