From 2a27bad8d4a31a4d63f48e8983c433b69e17ee7c Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 30 Jan 2019 14:25:31 +0100
Subject: [PATCH] [coverage] Upload to codecov.

---
 Jenkinsfile | 4 +++-
 codecov.yml | 8 ++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 codecov.yml

diff --git a/Jenkinsfile b/Jenkinsfile
index 35519b898fc..1b0ac07843a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -207,8 +207,10 @@ pipeline {
           }
           post {
             always {
+              dir('build') {
+                sh "curl -s https://codecov.io/bash | bash -s - -f *_cobertura.xml"
+              }
               xunit([GoogleTest(pattern: 'build/Tests/testrunner.xml')])
-              cobertura coberturaReportFile: 'build/*_cobertura.xml'
             }
           }
         }
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 00000000000..2d0d5456143
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,8 @@
+codecov:
+  token: 2371d4ae-34d6-4a75-a212-0ecd2ffa2629
+
+ignore:
+  - "Applications/CLI"
+  - "ProcessLib"
+  - "ThirdParty"
+  - "*Tests/**/*"
-- 
GitLab