Report: Configure report 2001.19
[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 # Install system dependencies
15 sudo apt-get -y update
16 sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \
17     zlib1g-dev unzip
18
19 if [[ ${CFG[BLD_LATEX]} -eq 1 ]] ;
20 then
21     sudo apt-get -y install xvfb texlive-latex-recommended \
22         texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra latexmk wkhtmltopdf inkscape
23     sudo sed -i.bak 's/^\(main_memory\s=\s\).*/\110000000/' /usr/share/texlive/texmf-dist/web2c/texmf.cnf
24 fi
25
26 # Create working directories
27 mkdir ${DIR[WORKING]}
28
29 # Create virtual environment
30 virtualenv -p $(which python3) ${DIR[WORKING]}/env
31 source ${DIR[WORKING]}/env/bin/activate
32
33 # Install python dependencies:
34 pip3 install -r requirements.txt
35
36 export PYTHONPATH=`pwd`:`pwd`/../../../:`pwd`/../../libraries/python
37
38 python pal.py \
39     --specification specification.yaml \
40     --release ${RELEASE} \
41 <<<<<<< HEAD   (953d13 Report: Fix typo in specification.)
42 <<<<<<< HEAD   (793b6b Report: Add data)
43 <<<<<<< HEAD   (b95753 PAL: Fix table data model)
44 <<<<<<< HEAD   (ede849 Report: Add pdf version)
45 <<<<<<< HEAD   (35a360 Report: Add data)
46 =======
47 <<<<<<< HEAD   (ef4187 Report: Add pdf version)
48 >>>>>>> CHANGE (68013a Report: Configure report 2001.15)
49     --week "13" \
50 =======
51 <<<<<<< HEAD   (ede849 Report: Add pdf version)
52 <<<<<<< HEAD   (d4f9e9 CSIT-1597 API cleanup: acl)
53     --week "12" \
54 =======
55 =======
56 <<<<<<< HEAD   (9b9bbb PAL: Fix table data model)
57 >>>>>>> CHANGE (8f2816 Report: Configure report 2001.16)
58     --week "14" \
59 <<<<<<< HEAD   (b95753 PAL: Fix table data model)
60 >>>>>>> CHANGE (0ed80e Report: COnfigure reoirt 2001.14)
61 >>>>>>> CHANGE (bdfc93 Report: COnfigure reoirt 2001.14)
62 =======
63     --week "15" \
64 >>>>>>> CHANGE (8e601d Report: Configure report 2001.15)
65 >>>>>>> CHANGE (68013a Report: Configure report 2001.15)
66 =======
67 =======
68     --week "16" \
69 >>>>>>> CHANGE (42a491 Report: Configure report 2001.16)
70 >>>>>>> CHANGE (8f2816 Report: Configure report 2001.16)
71 =======
72     --week "18" \
73 >>>>>>> CHANGE (dfd4a2 Report: Configure Report 2001.18)
74 =======
75     --week "19" \
76 >>>>>>> CHANGE (413f1d Report: Configure report 2001.19)
77     --logging INFO \
78     --force
79
80 RETURN_STATUS=$(echo $?)
81 exit ${RETURN_STATUS}