From ae615f26e8d5fe0561c71f4d58b58e8868223b0a Mon Sep 17 00:00:00 2001
From: "Patrick L.S. Connor" <connorpa@mail.desy.de>
Date: Thu, 22 Feb 2024 06:53:38 +0100
Subject: [PATCH] adding unit test

---
 .gitlab-ci.yml | 5 ++++-
 setup          | 1 -
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c331573..8084f41 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,11 +13,14 @@ cmake:
     stage: build
     tags:
         - cvmfs
+    variables:
+        TERM: xterm
     script:
-        - source /cvmfs/cms.cern.ch/cmsset_default.sh
         - yum install -y cmake3 openssl-devel python3 zsh
+        - source ./setup
         - ./install.sh
         - cd CMSSW*/
         - shopt -s expand_aliases  # allows aliases like cmsenv to be used
         - cmsenv
+        - python -c "import CRABAPI"
         - scram b -j$(nproc)
diff --git a/setup b/setup
index 1274475..4492ff8 100644
--- a/setup
+++ b/setup
@@ -16,7 +16,6 @@ case "$(hostname)" in
         tput setaf 2
         echo "Environment set up for IIHE T2B cluster."
         tput op
-        source /cvmfs/cms.cern.ch/cmsset_default.sh
         ;;
     *)
         tput setaf 3
-- 
GitLab