[pitivi/1.0] ci: Publish test reports



commit 2d2e98efa0b9894a3f6ea1cee6398c6e4a5347e5
Author: Thibault Saunier <tsaunier igalia com>
Date:   Thu Jul 26 22:48:10 2018 -0400

    ci: Publish test reports

 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7a939de6..4b0ff3ae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - test-results
 
 build:
   image: registry.gitlab.gnome.org/gnome/pitivi:master
@@ -24,3 +25,16 @@ build:
     - ${RUN_IN_SANDBOX} meson mesonbuild/
     - ${RUN_IN_SANDBOX} ninja -C mesonbuild/
     - xvfb-run -n 32 -s "-screen 0 640x480x24" ${RUN_IN_SANDBOX} gst-validate-launcher 
$PWD/tests/ptv_testsuite.py --dump-on-failure --timeout-factor 4 --xunit-file ${XUNIT_PATH}
+
+test-results:
+  image: registry.gitlab.gnome.org/gnome/pitivi:master
+  stage: test-results
+  artifacts:
+    paths:
+      - test-results
+  dependencies:
+    - build
+  script:
+    - (wget 
https://gitlab.gnome.org/GNOME/${CI_PROJECT_NAME}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download?job=test-results
 -O history.zip && unzip history.zip && mv test-results history && ls history/) || echo "No history"
+    - /opt/allure/bin/allure generate --clean --output test-results/ history/ .
+    - printf "=========================\n\n TEST RESULTS WILL BE AVAILABLE AT 
https://gnome.pages.gitlab.gnome.org/-/${CI_PROJECT_NAME}/-/jobs/${CI_JOB_ID}/artifacts/test-results/index.html\n\n===================";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]