add basic_test to RO module. Remove a typo
[osm/devops.git] / jenkins / RO / start_build
1 #!/bin/bash
2 #
3 #   Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U.
4 #
5 #   Licensed under the Apache License, Version 2.0 (the "License");
6 #   you may not use this file except in compliance with the License.
7 #   You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #   Unless required by applicable law or agreed to in writing, software
12 #   distributed under the License is distributed on an "AS IS" BASIS,
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #   See the License for the specific language governing permissions and
15 #   limitations under the License.
16
17 # Authors:
18 #    - Gerardo Garcia - gerardo.garciadeblas@telefonica.com
19
20
21 HERE=$(realpath $(dirname $0))
22 OSM_JENKINS=$(dirname $HERE)
23 . $OSM_JENKINS/common/all_funcs
24
25 # SET YOU MDG repository name here
26 export OSM_MDG=RO
27 OSM_load_config
28 OSM_git_checkout "$@"
29
30
31 INFO "starting build"
32
33 INFO "  cleaning .pyc"
34 rm -f *.pyc
35 INFO "  installing openmano packages and dependencies from current repo (--noclone)"
36 ./scripts/install-openmano.sh --noclone --force -q
37 INFO "  compiling *.py"
38 #TEMPFILE="$(mktemp -q -p . "openmanolinker.XXXXXX.py")"
39 #trap 'rm -f "$TEMPFILE"' EXIT
40 #for i in vimconn*.py; do echo "import $i" >> $TEMPFILE; done
41 #python $TEMPFILE &&
42 python -m py_compile *.py   &&     #uncomment to concatenate commands
43 INFO "  basic_test"         &&
44 ./test/basictest.sh --force --insert-bashrc --install-openvim --init-openvim  #&&
45 #basic test HERE            #&&     #uncomment to concatenate commands
46
47 RC=$?
48 INFO "done, RC=$RC"
49 exit $RC
50
51