From e001b803f34a4ee2f35a5fbf3d935444be3da948 Mon Sep 17 00:00:00 2001
From: rulrich <ralf.m.ulrich@kit.edu>
Date: Wed, 15 Jul 2020 07:46:41 +0200
Subject: [PATCH] small improvement

---
 CMakeLists.txt | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 86acd1300..9b2a52509 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -115,9 +115,12 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage)
   add_custom_target (coverage DEPENDS coverage-report)
 endif ()
 
-# add call to ./do-copyright.py to run as unit-test-case
-add_test (NAME copyright_notices COMMAND ./do-copyright.py WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
-
+# include this test only if NOT run on gitlab-ci, since there we have a dedicated job for it:
+if (NOT DEFINED ENV{CI})
+  # add call to ./do-copyright.py to run as unit-test-case
+  add_test (NAME copyright_notices COMMAND ./do-copyright.py WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+endif (NOT DEFINED ENV{CI})
+  
 if (DEFINED ENV{CORSIKA_DATA})
   message ("Found  corsika-data in $ENV{CORSIKA_DATA}")
   set (CORSIKA_DATA $ENV{CORSIKA_DATA})
-- 
GitLab