From 6b25b8c7ce79ed88d6621855fd5fcdb8c26e458f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Thu, 20 Jan 2022 15:05:30 +0100
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8f702f6..2082fe9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,9 +3,14 @@ stages:          # List of stages for jobs, and their order of execution
   - test
 
 ############ YAML ANCHORS ############
+.script_gcc5_template: &script_gcc5_definition
+  - add-apt-repository ppa:ubuntu-toolchain-r/test
+  - apt-get update
+  - apt-get install gcc-snapshot
+  - apt-get install gcc-5 g++-5
+
 .script_install_template: &script_install_definition
   - apt-get update -y && apt-get install -y expect
-#  - ./auto_script_wolf
   - ./install_wolf.sh -a -f y -c y -d . -w .
 
 .script_test_template: &script_test_definition
@@ -30,6 +35,7 @@ installation-test-xenial:
   cache: []
   image: ubuntu:16.04
   script:
+    - *script_gcc5_definition
     - *script_install_definition
     - *script_test_definition
 
-- 
GitLab