From d0f16273f2249235a5e44673fd1524bcd5992a0c Mon Sep 17 00:00:00 2001
From: Riccardo Maria Bianchi <riccardo.maria.bianchi@cern.ch>
Date: Mon, 6 Jul 2020 19:13:25 +0200
Subject: [PATCH] CI: clean the macOS build env after build

---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5e4b26449..b8b5a5431 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,8 +20,11 @@ variables:
   allow_failure: true
   timeout: 30 minutes
   before_script:
-    - brew install nlohmann-json
+    - brew install nlohmann-json xerces-c
     - export PATH="/usr/local/opt/qt/bin:$PATH" # to make Qt5 discoverable by CMake
+  after_script:
+    - brew remove nlohmann-json xerces-c
+    
 
 .ubuntu-template-job-base: &ubuntu-job-base
   image: ubuntu:18.04
-- 
GitLab