Report: configure rls2106.33
[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: s3 config (until migrated to vault, then account will be reset)
21 mkdir -p ${HOME}/.aws
22 echo "[nomad-s3]" >> ${HOME}/.aws/config
23 echo "[nomad-s3]
24 aws_access_key_id = csit
25 aws_secret_access_key = Csit1234" >> ${HOME}/.aws/credentials
26
27 # Install python dependencies:
28 pip3 install -r requirements.txt
29
30 export PYTHONPATH=`pwd`:`pwd`/../../../
31
32 python pal.py \
33     --specification specifications/report \
34     --release ${RELEASE} \
35     --week "33" \
36     --logging INFO \
37     --force
38
39 RETURN_STATUS=$(echo $?)
40 exit ${RETURN_STATUS}