[MERGED] python/osmo-python-tests[master]: Add scripts to compilation tests in jenkins

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Sat Dec 23 11:23:42 UTC 2017


Max has submitted this change and it was merged.

Change subject: Add scripts to compilation tests in jenkins
......................................................................


Add scripts to compilation tests in jenkins

Related: OS#2684
Change-Id: If098c20b1ad17c3868073b9fe07fd3795217c526
---
M contrib/jenkins.sh
1 file changed, 18 insertions(+), 6 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index a60438e..c4ddf7d 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -2,14 +2,26 @@
 
 set -ex
 
+COM_FLAGS='-m compileall'
+
 # FIXME: remove once python 2 support is deprecated
-python2 ./setup.py install
-python2 tests/test_py2.py
-python2 -m compileall osmopy
+PY2=python2
+PY2_LIST="osmopy scripts/osmo_ctrl.py scripts/osmodumpdoc.py scripts/osmotestvty.py scripts/osmotestconfig.py"
+$PY2 ./setup.py install
+$PY2 tests/test_py2.py
+for f in $PY2_LIST
+do
+    $PY2 $COM_FLAGS $f
+done
 
 rm -rf ./build
-python3 ./setup.py install
-python3 tests/test_py3.py
-python3 -m compileall osmopy
+PY3=python3
+PY3_LIST="osmopy scripts/osmo_ctrl.py scripts/osmo_interact_ctrl.py scripts/osmo_interact_vty.py scripts/osmo_verify_transcript_ctrl.py scripts/osmo_verify_transcript_vty.py scripts/soap.py scripts/twisted_ipa.py"
+$PY3 ./setup.py install
+$PY3 tests/test_py3.py
+for f in $PY3_LIST
+do
+    $PY3 $COM_FLAGS $f
+done
 
 # TODO: add more tests

-- 
To view, visit https://gerrit.osmocom.org/5482
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If098c20b1ad17c3868073b9fe07fd3795217c526
Gerrit-PatchSet: 5
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list