Ed Tanous | 7e95d32 | 2018-01-18 15:13:16 -0800 | [diff] [blame] | 1 | #!groovy |
| 2 | stage 'Debug Build' |
| 3 | sh '''rm -rf build_debug |
| 4 | mkdir build_debug |
| 5 | cd build_debug |
| 6 | cmake .. -DCMAKE_BUILD_TYPE="Debug" |
| 7 | cmake --build .''' |
| 8 | |
| 9 | //stage 'Debug Test' |
| 10 | //sh '''cd build_debug |
| 11 | // ctest -V --output-on-failure''' |
| 12 | |
| 13 | stage 'Release Build' |
| 14 | sh '''rm -rf build_release |
| 15 | mkdir build_release |
| 16 | cd build_release |
| 17 | cmake .. -DCMAKE_BUILD_TYPE="Release" |
| 18 | cmake --build .''' |
| 19 | |
| 20 | //stage 'Release Test' |
| 21 | //sh '''cd build_release |
| 22 | // ctest -V --output-on-failure''' |
| 23 | |