ci_template.yml: Run the check test suite!!!
authorJordan Petridis <jordan@centricular.com>
Wed, 21 Nov 2018 15:24:00 +0000 (17:24 +0200)
committerJordan Petridis <jordan@centricular.com>
Mon, 10 Dec 2018 12:45:56 +0000 (14:45 +0200)
Add a fedora job that runs the 'check' tests with
gst-validate-launcher. Its fairly well abstracted so the same
template can be used to add the rest of the test-suites fairly
soon.

.gitlab-ci.yml
gitlab/ci_template.yml

index a41266c..700f145 100644 (file)
@@ -162,3 +162,17 @@ build cerbero fedora x86_64 local:
   except:
     refs:
       - "master@gstreamer/gst-ci"
+
+.test fedora x86_64 local:
+  image: '${CI_REGISTRY_IMAGE}/amd64/fedora:latest'
+  extends: '.test'
+  dependencies:
+    - build fedora x86_64 local
+  except:
+    refs:
+      - "master@gstreamer/gst-ci"
+
+check fedora local:
+  extends: '.test fedora x86_64 local'
+  variables:
+    TEST_SUITE: 'check.gst*'
index 909cfc7..377e36c 100644 (file)
@@ -68,7 +68,7 @@ gst indent:
     CXX: "ccache g++"
     CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
     CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
-    MAIN_DIR: "${CI_PROJECT_DIR}"
+    MAIN_DIR: "${CI_PROJECT_DIR}/validate-output/"
     MESON_ARGS: "${DEFAULT_MESON_ARGS}"
 
   script:
@@ -115,6 +115,46 @@ build android arm64 api28:
   before_script:
     - cat /android_arm64_28.txt
 
+.test:
+  stage: 'test'
+  variables:
+    MAIN_DIR: "${CI_PROJECT_DIR}/validate-output/"
+    # Disable colored output to avoid weird rendering issues
+    GST_DEBUG_COLOR: 'no'
+  script:
+    - cd gst-build/
+    - >
+      ./gst-uninstalled.py
+      gst-validate-launcher ${TEST_SUITE}
+      -fs
+      -j=1
+      --mute
+      --shuffle
+      --no-display
+      --meson-no-rebuild
+      -M "${CI_PROJECT_DIR}/validate-output/"
+      --xunit-file "${CI_PROJECT_DIR}/validate-output/logs/xunit.xml"
+  artifacts:
+    expire_in: 2 days
+    when: always
+    paths:
+      - 'gst-build/build/meson-logs/'
+      - 'validate-output/logs'
+    reports:
+      junit:
+        - "validate-output/logs/*.xml"
+
+.test fedora x86_64:
+  image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:6f7e01e1e30a73efa880acdc8e911f1f20c58dbb'
+  extends: '.test'
+  dependencies:
+    - build fedora x86_64
+
+check fedora:
+  extends: '.test fedora x86_64'
+  variables:
+    TEST_SUITE: "check.gst*"
+
 # Template for Cerbero GStreamer Build
 #
 # Parameters: