3 export PYTHONPATH="${PYTHONPATH}:."
4 export CONFIG_REPORTING_YAML=./reporting.yaml
6 declare -a versions=(colorado 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
36 echo "********************************"
37 echo " Functest reporting "
38 echo "********************************"
39 echo "reporting vIMS..."
40 python ./functest/reporting-vims.py
41 echo "reporting vIMS...OK"
43 echo "reporting Tempest..."
44 python ./functest/reporting-tempest.py
45 echo "reporting Tempest...OK"
47 echo "reporting status..."
48 python ./functest/reporting-status.py
49 echo "Functest reporting status...OK"
51 echo "********************************"
52 echo " Yardstick reporting "
53 echo "********************************"
54 python ./yardstick/reporting-status.py
55 echo "Yardstick reporting status...OK"
57 echo "********************************"
58 echo " Storperf reporting "
59 echo "********************************"
60 python ./storperf/reporting-status.py
61 echo "Storperf reporting status...OK"
65 reporting_type="status"
67 echo "********************************"
68 echo " $project/$reporting_type reporting "
69 echo "********************************"
70 python ./$project/reporting-$reporting_type.py
72 cp -r display /usr/share/nginx/html
76 cp /home/opnfv/utils/test/reporting/docker/nginx.conf /etc/nginx/conf.d/
77 echo "daemon off;" >> /etc/nginx/nginx.conf
80 cp /home/opnfv/utils/test/reporting/docker/supervisor.conf /etc/supervisor/conf.d/
82 ln -s /usr/bin/nodejs /usr/bin/node