From 986ff96c3e2017ac0dd960412b516e0f1865d0ea Mon Sep 17 00:00:00 2001
From: Daniel Agar <daniel@agar.ca>
Date: Tue, 5 Feb 2019 11:56:12 -0500
Subject: [PATCH] Jenkins mac compile run tests separately

---
 .ci/Jenkinsfile-compile_mac | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/.ci/Jenkinsfile-compile_mac b/.ci/Jenkinsfile-compile_mac
index eb3260f018..e721e2bdbe 100644
--- a/.ci/Jenkinsfile-compile_mac
+++ b/.ci/Jenkinsfile-compile_mac
@@ -21,7 +21,6 @@ pipeline {
             sh 'ccache -z'
             sh 'make px4_sitl_default'
             sh 'ccache -s'
-            sh 'make tests'
           }
           post {
             always {
@@ -51,6 +50,27 @@ pipeline {
           }
         } // stage px4_fmu-v5_default
 
+        stage('sitl tests (OSX)') {
+          agent {
+            label 'mac'
+          }
+          environment {
+            CCACHE_BASEDIR = "${env.WORKSPACE}"
+          }
+          steps {
+            sh 'export'
+            sh 'make distclean'
+            sh 'ccache -z'
+            sh 'make tests'
+            sh 'ccache -s'
+          }
+          post {
+            always {
+              sh 'make distclean'
+            }
+          }
+        } // stage sitl tests
+
       } // parallel
     } // stage Build
 
-- 
GitLab