3 export PYTHONPATH="${PYTHONPATH}:."
4 export CONFIG_REPORTING_YAML=./reporting.yaml
6 declare -a versions=(danube master)
7 declare -a projects=(functest storperf yardstick)
12 # create Directories if needed
13 for i in "${versions[@]}"
15 for j in "${projects[@]}"
17 mkdir -p display/$i/$j
21 # copy images, js, css, 3rd_party
22 cp -Rf 3rd_party display
28 # if nothing is precised run all the reporting generation
31 # functest | status, vims, tempest
35 function report_project()
40 echo "********************************"
41 echo " $project reporting "
42 echo "********************************"
43 python ./$dir/reporting-$type.py
45 echo "$project reporting $type...OK"
47 echo "$project reporting $type...KO"
52 echo "********************************"
53 echo " Functest reporting "
54 echo "********************************"
55 echo "reporting vIMS..."
56 python ./functest/reporting-vims.py
57 echo "reporting vIMS...OK"
59 echo "reporting Tempest..."
60 python ./functest/reporting-tempest.py
61 echo "reporting Tempest...OK"
63 echo "reporting status..."
64 python ./functest/reporting-status.py
65 echo "Functest reporting status...OK"
67 echo "********************************"
68 echo " Yardstick reporting "
69 echo "********************************"
70 python ./yardstick/reporting-status.py
71 echo "Yardstick reporting status...OK"
73 echo "********************************"
74 echo " Storperf reporting "
75 echo "********************************"
76 python ./storperf/reporting-status.py
77 echo "Storperf reporting status...OK"
79 report_project "QTIP" "qtip" "status"
83 reporting_type="status"
85 echo "********************************"
86 echo " $project/$reporting_type reporting "
87 echo "********************************"
88 python ./$project/reporting-$reporting_type.py
90 cp -r display /usr/share/nginx/html
94 cp /home/opnfv/utils/test/reporting/docker/nginx.conf /etc/nginx/conf.d/
95 echo "daemon off;" >> /etc/nginx/nginx.conf
98 cp /home/opnfv/utils/test/reporting/docker/supervisor.conf /etc/supervisor/conf.d/
100 ln -s /usr/bin/nodejs /usr/bin/node