osmith has uploaded this change for review.

View Change

contrib/jenkins: run pysim tests too

Related: OS#6570
Change-Id: I6bb7f137d3124e68574bc599969a8e7fd8b68904
---
M contrib/jenkins.sh
1 file changed, 22 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/python/pyosmocom refs/changes/68/38268/1
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index afd66eb..a990e0e 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -48,7 +48,29 @@
make -C "docs" publish publish-html
fi
;;
+"pysim")
+ # Run the pysim tests with pyosmocom from this tree (OS#6570)
+ virtualenv -p python3 venv --system-site-packages
+ . venv/bin/activate
+ pip install . --force-reinstall
+ deactivate

+ # Clone pysim and remove pyosmocom from requirements.txt, we want to
+ # use the version that was just installed into the venv instead
+ git clone https://gerrit.osmocom.org/pysim --depth=1 --branch=master
+ cd pysim
+ sed -i '/^pyosmocom>=.*/d' requirements.txt
+ if grep -q pyosmocom requirements.txt; then
+ cat requirements.txt
+ set +x
+ echo "ERROR: failed to remove pyosmocom from pysim's requirements.txt"
+ exit 1
+ fi
+
+ # Let pysim enter the same venv and run the tests
+ ln -s $PWD/venv pysim/venv
+ SKIP_CLEAN_WORKSPACE=1 JOB_TYPE="test" contrib/jenkins.sh
+ ;;
*)
set +x
echo "ERROR: JOB_TYPE has unexpected value '$JOB_TYPE'."

To view, visit change 38268. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: I6bb7f137d3124e68574bc599969a8e7fd8b68904
Gerrit-Change-Number: 38268
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>