From 5c4366a56b4982195086cab06ae4e7394c652463 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Wed, 26 Feb 2020 12:59:36 +0100
Subject: [PATCH] Fix pypi release

---
 .gitlab-ci.yml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 32a89f8..52ee412 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,14 +18,11 @@ stages:
     - release
 
 
-before_script:
-    - yum install -y epel-release
-    - yum install -y python-pip python-devel
-    - _CWD=$(pwd) && cd /usr/local/root && source bin/thisroot.sh && cd $_CWD
-    - source /Jpp/setenv.sh /Jpp
-
-
 .virtualenv_template: &virtualenv_definition |
+  yum install -y epel-release
+  yum install -y python-pip python-devel
+  _CWD=$(pwd) && cd /usr/local/root && source bin/thisroot.sh && cd $_CWD
+  source /Jpp/setenv.sh /Jpp
   python -V
   pip install -U pip setuptools wheel
   pip install virtualenv
-- 
GitLab