X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FRO%2Fstart_build;h=01474eea4991480f45b8b6ec37eb9364263ad74c;hb=08d8b52e180470a113da1bb6945ace4c28861d5b;hp=4db12ec7114bb7e942dad5c845773fe7169cdc39;hpb=2e9b8140b000bf7bf80ddf629f721fc19926a6e5;p=osm%2Fdevops.git diff --git a/jenkins/RO/start_build b/jenkins/RO/start_build index 4db12ec7..01474eea 100755 --- a/jenkins/RO/start_build +++ b/jenkins/RO/start_build @@ -25,27 +25,39 @@ OSM_JENKINS=$(dirname $HERE) # SET YOU MDG repository name here export OSM_MDG=RO OSM_load_config + +NOTEST="" +if [ "$1" = "--notest" ]; then + shift + NOTEST="y" +fi + OSM_git_checkout "$@" +INFO "installing RO packages and dependencies from current repo (--noclone)" +./scripts/install-openmano.sh --noclone --force -q +RC=$? + +if [ -n "$NOTEST" ]; then + INFO "done, RC=$RC" + exit $RC +fi INFO "starting build" INFO " cleaning .pyc" rm -f *.pyc -INFO " installing openmano packages and dependencies from current repo (--noclone)" -./scripts/install-openmano.sh --noclone --force -q - INFO " compiling *.py" TEMPFILE="$(mktemp -q -p . "openmanolinker.XXXXXX.py")" trap 'rm -f "$TEMPFILE"' EXIT for i in `ls vimconn_*.py |sed "s/\.py//"`; do echo "import $i" >> $TEMPFILE; done python $TEMPFILE && -python -m py_compile *.py && +python -m py_compile *.py # && -INFO " basic_test" && -./test/basictest.sh --force --insert-bashrc --install-openvim --init-openvim #&& #uncomment to add new tests +#INFO " basic_test" && +#./test/basictest.sh --force --insert-bashrc --install-openvim --init-openvim #&& #uncomment to add new tests # OTHER TESTS HERE RC=$?