]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Add Jenkinsfile (#5041)
authorThomas Müller <DeepDiver1975@users.noreply.github.com>
Tue, 12 Jul 2016 11:24:35 +0000 (13:24 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 29 Jul 2016 06:48:28 +0000 (08:48 +0200)
Jenkinsfile [new file with mode: 0644]

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644 (file)
index 0000000..51d6100
--- /dev/null
@@ -0,0 +1,43 @@
+#!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'''
+
+
+}
+
+