.gitlab-ci.yml in dri-0.1.3 vs .gitlab-ci.yml in dri-0.2.0
- old
+ new
@@ -1,11 +1,12 @@
.job_base:
- image: ruby:3.1
+ image: ruby:2.7
variables:
BUNDLE_PATH: vendor/bundle
BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES: "true"
before_script:
+ - gem install bundler -v 2.3.9 --no-document
- bundle install
cache:
key:
files:
- dri.gemspec
@@ -31,10 +32,16 @@
stage: build
extends: .job_base
script:
- gem build
+rubocop:
+ stage: test
+ extends: .job_base
+ script:
+ - bundle exec rubocop --color
+
rspec:
stage: test
extends: .job_base
script:
- - bundle exec rspec
+ - bundle exec rspec --color