PAL: Remove instalation of system dependencies
[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 CFG[BLD_LATEX]=1
13
14 # Create working directories
15 mkdir ${DIR[WORKING]}
16
17 # Create virtual environment
18 virtualenv -p $(which python3) ${DIR[WORKING]}/env
19 source ${DIR[WORKING]}/env/bin/activate
20
21 # FIXME: Temporary hack until all docker dns will be solved
22 echo "nameserver 172.17.0.1" > /etc/resolv.conf
23
24 # Install python dependencies:
25 pip3 install -r requirements.txt
26
27 export PYTHONPATH=`pwd`:`pwd`/../../../:`pwd`/../../libraries/python
28
29 python pal.py \
30     --specification specification.yaml \
31     --release ${RELEASE} \
32     --week "09" \
33     --logging INFO \
34     --force
35
36 RETURN_STATUS=$(echo $?)
37 exit ${RETURN_STATUS}