X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Frun_report.sh;h=7c0776d7bdd5783c6ff4d6abdc81812080d224d6;hp=219e8600c26cc45bea2c12f3f55cfec3e6b0b7dc;hb=7902281ee08456a4d90bb5829ba42da2c71a6379;hpb=f4c4608a348dbff603a75fb59e36e1ee8daa2b2a diff --git a/resources/tools/presentation/run_report.sh b/resources/tools/presentation/run_report.sh index 219e8600c2..7c0776d7bd 100755 --- a/resources/tools/presentation/run_report.sh +++ b/resources/tools/presentation/run_report.sh @@ -9,19 +9,6 @@ typeset -A CFG typeset -A DIR DIR[WORKING]=_tmp -CFG[BLD_LATEX]=1 - -# Install system dependencies -sudo apt-get -y update -sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \ - zlib1g-dev unzip - -if [[ ${CFG[BLD_LATEX]} -eq 1 ]] ; -then - sudo apt-get -y install xvfb texlive-latex-recommended \ - texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra latexmk wkhtmltopdf inkscape - sudo sed -i.bak 's/^\(main_memory\s=\s\).*/\110000000/' /usr/share/texlive/texmf-dist/web2c/texmf.cnf -fi # Create working directories mkdir ${DIR[WORKING]} @@ -30,15 +17,22 @@ mkdir ${DIR[WORKING]} virtualenv -p $(which python3) ${DIR[WORKING]}/env source ${DIR[WORKING]}/env/bin/activate +# FIXME: s3 config (until migrated to vault, then account will be reset) +mkdir -p ${HOME}/.aws +echo "[nomad-s3]" >> ${HOME}/.aws/config +echo "[nomad-s3] +aws_access_key_id = csit +aws_secret_access_key = Csit1234" >> ${HOME}/.aws/credentials + # Install python dependencies: pip3 install -r requirements.txt -export PYTHONPATH=`pwd`:`pwd`/../../../:`pwd`/../../libraries/python +export PYTHONPATH=`pwd`:`pwd`/../../../ python pal.py \ - --specification specification.yaml \ + --specification specifications/report \ --release ${RELEASE} \ - --week "20" \ + --week "31" \ --logging INFO \ --force