From 14dba9fd96502692da2639d0ff6a439104a53d21 Mon Sep 17 00:00:00 2001
From: Ingo Steldermann <ingo.steldermann@rwth-aachen.de>
Date: Fri, 9 Feb 2024 21:15:24 +0100
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 06c97d1..a590e80 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,21 @@
 # The Docker image that will be used to build your app
 image: ubuntu:latest
 # Functions that should be executed before the build script is run
-before_script:
-  - ":"
 pages:
+    before_script:
+    - apt-get update -qq
+    - echo "install python"
+    - apt-get install python3-dev -y
+    - apt install python3.10-venv -y
+    - echo "install quarto"
+    - apt-get install curl -y
+    - mkdir -p /opt/quarto/${QUARTO_VERSION}
+    - curl -o quarto.tar.gz -L "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.tar.gz"
+    - tar -zxvf quarto.tar.gz -C "/opt/quarto/${QUARTO_VERSION}" --strip-components=1
+    - ln -s /opt/quarto/${QUARTO_VERSION}/bin/quarto /usr/local/bin/quarto
+    - quarto install tinytex
+    - echo "check quarto installation"
+    - quarto check
   script:
     - rm -rf public
     - cd scripts
-- 
GitLab