aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-10 14:58:48 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-10 15:21:19 +0200
commit3c18c99b0110306df939f5840e582543193a2c81 (patch)
tree5c12a575b3d3ddd1fa8a86ef67811d88800d75e8
parent9edc3afce838515fa788cf8cfe4553cea097262d (diff)
downloadRWA.Support.DesktopApp-3c18c99b0110306df939f5840e582543193a2c81.tar.gz
RWA.Support.DesktopApp-3c18c99b0110306df939f5840e582543193a2c81.tar.bz2
RWA.Support.DesktopApp-3c18c99b0110306df939f5840e582543193a2c81.zip
.gitlab-ci.yml: Add test stage and test job.
-rw-r--r--.gitlab-ci.yml46
1 files changed, 29 insertions, 17 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6e898e..560d777 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,21 +3,31 @@ image: darkmattercoder/qt-build:latest
stages:
- Build
- - Run
+ - Test
+# - Run
RWA:Build:
stage: Build
script:
- - apt update && apt -y install make autoconf
- - qmake rwa-support-desktopapp.pro
- - make
+ - pwd
+ # list all files in whole git repo
+ - echo "List all files:"
+ - find ../
+ - sudo apt update && sudo apt -y install make autoconf
+ - mkdir build && cd build
+ - qmake ../rwa-support-desktop.pro
+ - make -j4
+ # list all files in whole git repo
+ - echo "All files including artifacts "rwa-support-desktopapp" and "tests" binaries:"
+ - find ../
artifacts:
paths:
- - rwa-support-desktopapp
- expire_in: 2 weeks
+ - build/tests/tests
+ - build/rwa-support-desktopapp/rwa-support-desktopapp
+ expire_in: 1 weeks
# Disabled because running the application would give an error
-# since there are no X.Org server, Wayland or other display servers available
+# since there is no X.Org server, Wayland or other display server available
# RWA:Run:
# stage: Run
# script:
@@ -25,14 +35,16 @@ RWA:Build:
# - find
# - echo "Executing rwa-support-desktopapp"
# - ./rwa-support-desktopapp
-# dependencies:
-# - RWA:Build
+# needs: ["RWA:Build"]
-# To be implemented.
-# RWA:Test:
-# stage: Test
-# script:
-# - echo "All files in git repo + artifact 'rwa-support-desktopapp':"
-# - find
-# dependencies:
-# - Build:Code
+RWA:Test:
+ stage: Test
+ script:
+ - sudo apt update && sudo apt -y install xvfb
+ - pwd
+ # list all files in whole git repo
+ - echo "All files:"
+ - find
+ - cd build/tests
+ - xvfb-run ./tests
+ needs: ["RWA:Build"]