-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (36 loc) · 1.06 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
include:
- project: "nstmrt/rubygems/templates"
ref: master
file: "build-rubygems.yml"
lint:
stage: test
image: ${BUILD_CONF_HARBOR_REGISTRY}/dhub/library/ruby:3.3
tags:
- paas-stage
script:
- bundle install
- bundle exec rubocop
tests:
stage: test
image: ${BUILD_CONF_HARBOR_REGISTRY}/dhub/library/ruby:$RUBY_VERSION
tags:
- paas-medium
services:
- name: ${BUILD_CONF_HARBOR_REGISTRY}/dhub/library/postgres:13
alias: postgres
variables:
POSTGRES_HOST_AUTH_METHOD: trust
DATABASE_URL: postgres://postgres:secret@postgres:5432
parallel:
matrix:
- RUBY_VERSION: ['2.7', '3.0', '3.1', '3.2', '3.3']
before_script:
- gem install bundler -v 2.4.22
- bin/setup
script:
- bundle exec appraisal rspec --format RspecJunitFormatter --out test-results/rspec_$RUBY_VERSION.xml --format documentation
- bundle exec appraisal rspec -t pact spec/pact/providers/**/*_spec.rb
- bundle exec appraisal rspec -t pact spec/pact/consumers/*_spec.rb
artifacts:
reports:
junit: test-results/rspec*.xml