Review at https://gerrit.osmocom.org/5481
Explicitly check syntax in jenkins tests By default setup.py ignores compilation errorsand proceed with installation anyway. Make sure that it fails if any errorsis encountered bymanually call compilation step. Change-Id: I2235e3fff21b7c09d3fba00ecdccca7f4515e071 Related: OS#2770 --- M contrib/jenkins.sh 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/81/5481/1 diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index 802ba2d..d4b30cb 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -2,3 +2,7 @@ python2 ./setup.py install || python ./setup.py install rm -rf ./build python3 ./setup.py install + +# check for syntax errors +python2 -m compileall osmopy +python3 -m compileall osmopy -- To view, visit https://gerrit.osmocom.org/5481 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2235e3fff21b7c09d3fba00ecdccca7f4515e071 Gerrit-PatchSet: 1 Gerrit-Project: python/osmo-python-tests Gerrit-Branch: master Gerrit-Owner: Max <[email protected]>
