From: Jordan Petridis Date: Wed, 21 Nov 2018 15:24:00 +0000 (+0200) Subject: ci_template.yml: Run the check test suite!!! X-Git-Tag: 1.19.3~497^2~461 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7151af0270d8199bc64ec2c2875ccbbbcb922e31;p=platform%2Fupstream%2Fgstreamer.git ci_template.yml: Run the check test suite!!! 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. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a41266c..700f145 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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*' diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index 909cfc7..377e36c 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -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: