diff options
| -rw-r--r-- | .gitlab-ci.yml | 15 | ||||
| -rw-r--r-- | Gemfile | 3 | ||||
| -rw-r--r-- | 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 @@ -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) |
