File: Jenkinsfile

package info (click to toggle)
owncloud-client 2.2.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,144 kB
  • ctags: 5,433
  • sloc: cpp: 35,894; ansic: 7,917; perl: 1,474; python: 217; ruby: 174; makefile: 38; sh: 23
file content (58 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!groovy

node('CLIENT') {
    stage 'Checkout'
        checkout scm
        sh '''git submodule update --init'''

    stage 'Qt4'
        sh '''rm -rf build
		mkdir build
		cd build
		cmake -DUNIT_TESTING=1 -DBUILD_WITH_QT4=ON ..
		make
		ctest --output-on-failure'''

    stage 'Qt4 - clang'
        sh '''rm -rf build
		mkdir build
		cd build
		cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DUNIT_TESTING=1 -DBUILD_WITH_QT4=ON ..
		make
		ctest --output-on-failure'''

    stage 'Qt5'
        sh '''rm -rf build
		mkdir build
		cd build
		cmake -DUNIT_TESTING=1 -DBUILD_WITH_QT4=OFF ..
		make
		ctest --output-on-failure'''

    stage 'Qt5 - clang'
        sh '''rm -rf build
		mkdir build
		cd build
		cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DUNIT_TESTING=1 -DBUILD_WITH_QT4=OFF ..
		make
		ctest --output-on-failure'''


    stage 'Win32'
	def win32 = docker.image('deepdiver/docker-owncloud-client-win32:latest')
	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 .
		'''
	}
}