From 20e1f527a266aa2b0cf8670af5b90f79cc00326d Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 26 Dec 2020 23:31:24 +0200 Subject: [PATCH] Collect bats test results. Convert them to the jUnit format and add them as a report. --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98ded67..a540ff2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,4 +21,11 @@ bats: - git config --global user.email "you@example.com" - git config --global user.name "Your Name" script: - - bats tests/ + - bats tests/ | tee results.tap + after_script: + # yamllint disable-line rule:line-length + - wget https://github.com/cloudbees-oss/juxr/releases/download/0.1.22/juxr-x86_64-unknown-linux-musl.tar.gz -O - | tar -xz + - ./juxr tap --name bats --output results/ -- cat results.tap + artifacts: + reports: + junit: results/*.xml -- GitLab