Build poster as svg and include into Readme.md
Change-Id: Ib12305c0b56e6546f86da9fdc581621d80b1ece9
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1ef0245..8850e27 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,7 @@
- start_section install_linux_packages "Installing missing Linux packages"
- apt-get update
- - apt-get install -y build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript software-properties-common
+ - apt-get install -y build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript software-properties-common inkscape scour
- add-apt-repository ppa:saiarcot895/chromium-beta
- apt update
- apt install -y chromium-browser
@@ -49,5 +49,8 @@
- R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('R/report.Rmd', output_format='html_document', output_dir='target')"
- R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('R/poster.Rmd', output_format='posterdown::posterdown_ids', output_dir='target')"
- ./ci/html2pdf target/poster.html target/poster.pdf 1
+ - inkscape -b white --pdf-poppler -o target/poster.svg target/poster.pdf || true
+ - scour -i target/poster.svg -o target/poster_optimized.svg --enable-viewboxing --enable-id-stripping --shorten-ids --indent=none
+
- end_section render