]>
Commit | Line | Data |
---|---|---|
9cfc7e8a AS |
1 | #!groovy |
2 | ||
98a1a2dd AS |
3 | timestamps { |
4 | node('freebsd') { | |
5 | // freebsd 10.3 + pkg install git openjdk cmake icu pkgconf swig30 python3 boost-libs gettext-tools qt5-buildtools qt5-network qt5-qmake | |
2532aca9 | 6 | timeout(time: 30, unit: 'MINUTES') { |
ce79be8b | 7 | def wsdir = pwd() |
2532aca9 AS |
8 | stage('Checkout') { |
9 | step([$class: 'WsCleanup']) | |
10 | checkout scm | |
11 | sh 'git submodule update --init --recursive' | |
12 | } | |
ce79be8b | 13 | dir("$wsdir/build") { |
9cfc7e8a | 14 | stage('Build') { |
ce79be8b | 15 | sh "cmake $wsdir -DWANT_PERL=ON -DWANT_PYTHON=ON -DCMAKE_INSTALL_PREFIX=$wsdir/build/install-prefix" |
2532aca9 | 16 | sh 'make VERBOSE=1 all' |
9cfc7e8a AS |
17 | } |
18 | stage('Unit test') { | |
ce79be8b AS |
19 | withEnv(['GTEST_OUTPUT=xml:unit-test.xml']) { |
20 | sh 'make unittest' | |
21 | } | |
9cfc7e8a AS |
22 | } |
23 | stage('Integration test') { | |
ce79be8b AS |
24 | withEnv(['GTEST_OUTPUT=xml:integration-test.xml']) { |
25 | sh 'make install' | |
26 | sh 'make inttest' | |
27 | } | |
9cfc7e8a | 28 | } |
ce79be8b | 29 | junit '**/*test.xml' |
9cfc7e8a | 30 | } |
9cfc7e8a | 31 | } |
9cfc7e8a AS |
32 | } |
33 | } |