nextcloud-desktop/Jenkinsfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.3 KiB
Text
Raw Normal View History

2016-07-12 14:24:35 +03:00
#!groovy
2017-06-22 16:42:56 +03:00
//
// We now run the tests in Debug mode so that ASSERTs are triggered.
// Ideally we should run the tests in both Debug and Release so we catch
// all possible error combinations.
// See also the top comment in syncenginetestutils.h
//
2016-07-12 14:24:35 +03:00
node('CLIENT') {
stage 'Checkout'
checkout scm
sh '''git submodule update --init'''
stage 'Qt5'
sh '''rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE="Debug" -DUNIT_TESTING=1 -DWITH_TESTING=1 -DCMAKE_PREFIX_PATH=/var/lib/jenkins/qt/5.6.2 ..
make -j4
2017-06-21 13:18:21 +03:00
ctest -V --output-on-failure'''
2016-07-12 14:24:35 +03:00
stage 'Qt5 - clang'
sh '''rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DUNIT_TESTING=1 -DWITH_TESTING=1 -DCMAKE_PREFIX_PATH=/var/lib/jenkins/qt/5.6.2 ..
make -j4
2017-06-21 13:18:21 +03:00
ctest -V --output-on-failure'''
2016-07-12 14:24:35 +03:00
2016-08-09 16:06:17 +03:00
stage 'Win32'
2017-02-13 16:47:51 +03:00
def win32 = docker.image('guruz/docker-owncloud-client-win32:latest')
2016-08-09 16:06:17 +03:00
win32.pull() // make sure we have the latest available from Docker Hub
win32.inside {
sh '''
rm -rf build-win32
mkdir build-win32
cd build-win32
../admin/win/download_runtimes.sh
cmake .. -DCMAKE_TOOLCHAIN_FILE=../admin/win/Toolchain-mingw32-openSUSE.cmake -DWITH_CRASHREPORTER=ON
make -j4
make package
ctest .
'''
}
2017-06-22 16:42:56 +03:00
// Stage 'macOS' TODO
2016-07-12 14:24:35 +03:00
}