From b913280dba16e4ea4cbb44b75d58a75866772779 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 7 Nov 2016 12:41:38 +0100
Subject: [PATCH] [Jenkins] Added Linux tests large job.

---
 scripts/jenkins/gcc-tests-large.groovy | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 scripts/jenkins/gcc-tests-large.groovy

diff --git a/scripts/jenkins/gcc-tests-large.groovy b/scripts/jenkins/gcc-tests-large.groovy
new file mode 100644
index 00000000000..a12a32db034
--- /dev/null
+++ b/scripts/jenkins/gcc-tests-large.groovy
@@ -0,0 +1,26 @@
+def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache'
+def defaultCMakeOptions =
+    '-DOGS_LIB_BOOST=System ' +
+    '-DOGS_LIB_VTK=System ' +
+    '-DOGS_USE_LIS=ON'
+
+def configure = new ogs.configure()
+def build = new ogs.build()
+def post = new ogs.post()
+def helper = new ogs.helper()
+
+node('docker') {
+    def image = docker.image('ogs6/gcc-gui:latest')
+    image.pull()
+    image.inside(defaultDockerArgs) {
+        stage('Configure') { configure.linux 'build', "${defaultCMakeOptions}" }
+        stage('Build') { build.linux this, 'build' }
+        stage('Test') { build.linux this, 'build', 'tests ctest-large' }
+    }
+
+    stage('Post') {
+        post.publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml',
+            'ogs/scripts/jenkins/clang-log-parser.rules'
+        post.cleanup()
+    }
+}
-- 
GitLab