3 export PYTHONPATH="${PYTHONPATH}:."
4 export CONFIG_REPORTING_YAML=./reporting.yaml
6 declare -a versions=(colorado master)
7 declare -a projects=(functest 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 echo "********************************"
36 echo " Functest reporting "
37 echo "********************************"
38 echo "reporting vIMS..."
39 python ./functest/reporting-vims.py
40 echo "reporting vIMS...OK"
42 echo "reporting Tempest..."
43 python ./functest/reporting-tempest.py
44 echo "reporting Tempest...OK"
46 echo "reporting status..."
47 python ./functest/reporting-status.py
48 echo "Functest reporting status...OK"
50 echo "********************************"
51 echo " Yardstick reporting "
52 echo "********************************"
53 python ./yardstick/reporting-status.py
54 echo "Yardstick reporting status...OK"
57 reporting_type="status"
59 echo "********************************"
60 echo " $project/$reporting_type reporting "
61 echo "********************************"
62 python ./$project/reporting-$reporting_type.py
64 cp -r display /usr/share/nginx/html
68 cp /home/opnfv/utils/test/reporting/docker/nginx.conf /etc/nginx/conf.d/
69 echo "daemon off;" >> /etc/nginx/nginx.conf
72 cp /home/opnfv/utils/test/reporting/docker/supervisor.conf /etc/supervisor/conf.d/
76 ln -s /usr/bin/nodejs /usr/bin/node
78 npm install -g grunt bower
79 bower install --allow-root