From 6a36e3426d50aa2eb19f14a0bd2c0aa53deae141 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 17 Sep 2020 10:11:29 -0600 Subject: chore: export junit compatible report --- .gitlab-ci.yml | 15 ++++++++++++--- Gemfile | 3 ++- Gemfile.lock | 3 +++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72c768a..efc3375 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,15 @@ integration: services: - docker:stable-dind script: - - apk add build-base git ruby ruby-bigdecimal ruby-bundler ruby-dev ruby-json - - bundle install - - bundle exec rspec + - apk add bash build-base git ruby ruby-bigdecimal ruby-bundler ruby-dev ruby-json + - ./bin/setup + - ./bin/test --format RspecJunitFormatter --out rspec.xml + cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - vendor + artifacts: + paths: + - rspec.xml + reports: + junit: rspec.xml diff --git a/Gemfile b/Gemfile index 6a32a7b..5d31804 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,10 @@ source "https://rubygems.org" group :test do - gem "rspec", "~> 3.9" gem "gitlab-styles", "~> 4.3" gem "json-schema", "~> 2.8" + gem "rspec", "~> 3.9" + gem "rspec_junit_formatter", "~> 0.4" gem "rubocop", "~> 0.82" gem "rubocop-rspec", "~> 1.41" end diff --git a/Gemfile.lock b/Gemfile.lock index 8f7a251..57b2219 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -44,6 +44,8 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.9.0) rspec-support (3.9.3) + rspec_junit_formatter (0.4.1) + rspec-core (>= 2, < 4, != 2.12.0) rubocop (0.82.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) @@ -76,6 +78,7 @@ DEPENDENCIES gitlab-styles (~> 4.3) json-schema (~> 2.8) rspec (~> 3.9) + rspec_junit_formatter (~> 0.4) rubocop (~> 0.82) rubocop-rspec (~> 1.41) -- cgit v1.2.3