308c6252ec92cbcdcacde55b9d79966aa3eeab80
[csit.git] / resources / tools / presentation / run_report.sh
1 #!/bin/bash
2
3 set -x
4
5 RELEASE=$1
6
7 # set default values in config array
8 typeset -A CFG
9 typeset -A DIR
10
11 DIR[WORKING]=_tmp
12
13 # Create working directories
14 mkdir ${DIR[WORKING]}
15
16 # Create virtual environment
17 virtualenv -p $(which python3) ${DIR[WORKING]}/env
18 source ${DIR[WORKING]}/env/bin/activate
19
20 # FIXME: Temporary hack until all docker dns will be solved
21 echo "nameserver 172.17.0.1" > /etc/resolv.conf
22
23 # Install python dependencies:
24 pip3 install -r requirements.txt
25
26 export PYTHONPATH=`pwd`:`pwd`/../../../:`pwd`/../../libraries/python
27
28 python pal.py \
29     --specification specification.yaml \
30     --release ${RELEASE} \
31     --week "09" \
32     --logging INFO \
33     --force
34
35 RETURN_STATUS=$(echo $?)
36 exit ${RETURN_STATUS}