From 18cc490de780bd22d1de6726535f14153559aa64 Mon Sep 17 00:00:00 2001
From: Magnus Jacobsson <Magnus.Jacobsson@berotec.se>
Date: Mon, 30 Mar 2020 16:28:29 +0200
Subject: [PATCH] Add test stage and ubuntu19-10-test

---
 .gitlab-ci.yml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df2dc36ea..10dc3ee3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 stages:
     - source
     - build
+    - test
     - deploy
 
 portable-source:
@@ -157,6 +158,28 @@ ubuntu19-10-build:
         - linux
     image: "graphviz/graphviz:ubuntu-19.10"
 
+ubuntu19-10-test:
+    stage: test
+    script:
+        - cat /etc/os-release
+        - ls -lt
+        - GV_VERSION=$( cat VERSION )
+        - COLLECTION=$( cat COLLECTION )
+        - zcat graphviz-${GV_VERSION}.tar.gz | tar xf -
+        - . /etc/os-release
+        - DIR=Packages/${COLLECTION}/${ID}/${VERSION_ID}
+        - ARCH=$( uname -m )
+        - find Packages
+        - apt install ./${DIR}/os/${ARCH}/libgraphviz4_${GV_VERSION}-1_amd64.deb
+        - apt install ./${DIR}/os/${ARCH}/graphviz_${GV_VERSION}-1_amd64.deb
+        - cd graphviz-${GV_VERSION}
+        - ./configure
+        - make -C tests/regression_tests/shapes check
+    image: "graphviz/graphviz:ubuntu-19.10"
+    only:
+        - master
+        - run-tests-on-gitlab-runners
+
 deployment:
     stage: deploy
     script:
-- 
2.40.0