fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/42657?usp=email )


Change subject: contrib/jenkins.sh: add setup_venv()
......................................................................

contrib/jenkins.sh: add setup_venv()

Change-Id: Ibb193d12d5502c78104ef53badc6037f08e92df1
---
M contrib/jenkins.sh
1 file changed, 9 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/57/42657/1

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index b95e80a..c527a83 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -10,6 +10,11 @@

 export PYTHONUNBUFFERED=1

+setup_venv() {
+       virtualenv -p python3 venv --system-site-packages
+       . venv/bin/activate
+}
+
 if [ ! -d "./tests/" ] ; then
        echo "###############################################"
        echo "Please call from pySim-prog top directory"
@@ -23,8 +28,7 @@

 case "$JOB_TYPE" in
 "test")
-       virtualenv -p python3 venv --system-site-packages
-       . venv/bin/activate
+       setup_venv

        pip install -r requirements.txt
        pip install pyshark
@@ -47,8 +51,7 @@
        tests/pySim-smpp2sim_test/pySim-smpp2sim_test.sh
        ;;
 "distcheck")
-       virtualenv -p python3 venv --system-site-packages
-       . venv/bin/activate
+       setup_venv

        pip install .
        pip install pyshark
@@ -61,8 +64,7 @@
        # Print pylint version
        pip3 freeze | grep pylint

-       virtualenv -p python3 venv --system-site-packages
-       . venv/bin/activate
+       setup_venv

        pip install .

@@ -80,8 +82,7 @@
                contrib/*.py
        ;;
 "docs")
-       virtualenv -p python3 venv --system-site-packages
-       . venv/bin/activate
+       setup_venv

        pip install -r requirements.txt


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/42657?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ibb193d12d5502c78104ef53badc6037f08e92df1
Gerrit-Change-Number: 42657
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to