summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-09-17 10:11:29 -0600
committermo khan <mo.khan@gmail.com>2020-09-17 10:11:29 -0600
commit6a36e3426d50aa2eb19f14a0bd2c0aa53deae141 (patch)
tree263f964848d03121940a40ed4d21a6c7900df87b
parent2a73eabc7d3fc830f1bf82f39caf2f612ed1f31e (diff)
chore: export junit compatible report
-rw-r--r--.gitlab-ci.yml15
-rw-r--r--Gemfile3
-rw-r--r--Gemfile.lock3
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)