Checkout Config
tools:
rubocop:
use_native_config: true
filter:
excluded_paths:
- spec/*
- vendor/*
build:
dependencies:
before:
- cd /home/scrutinizer/.rbenv/plugins/ruby-build && git pull origin master && cd -
- rbenv install -l
-
command: rbenv install 2.6.3
idle_timeout: 600
- rbenv local 2.6.3
- ruby -v
- gem uninstall bundler
- gem install bundler
- gem update --system
- gem install i18n rspec
environment:
# This is currently the latest version that can be installed by default in
# the environment. Check here for the latest supported versions:
# https://scrutinizer-ci.com/docs/build/languages#ruby
ruby: 2.5.1
nodes:
analysis:
tests:
override:
# - rubocop-run --config .rubocop.yml
- ruby-scrutinizer-run
tests:
before:
- bin/bundle-audit check --update
- bin/license_finder
- bin/rubocop --display-cop-names
- printf "yes\nno\n" | bin/resume
- bin/resume -l it <<< "no\n"
- printf "yes\nno\n" | bin/resume -l ja
- bin/rake resume
- ruby resume.rb <<< "no\n"
- ruby resume.rb -l it <<< "no\n"
- ruby resume.rb -l ja <<< "no\n"
override:
-
command: bin/rspec spec/ --no-drb --format progress
environment:
'SCRUTINIZER_CC_FILE': 'my-coverage'
# Scrutinizer cracked down on the possible versions used in the
# `environment.ruby` variable, so make the build run on the highest
# possible version available on their systems.
# 'CUSTOM_RUBY_VERSION': '2.4.2'
coverage:
file: 'my-coverage'
format: 'rb-cc'
- rubocop-run --config .rubocop.yml
checks:
ruby:
code_rating: true
duplicate_code: true
Repository Config
checks:
ruby: true
tools:
{ }
filter:
excluded_paths:
- 'spec/*'
build:
nodes:
tests: true
analysis:
tests:
override:
-
command: rubocop-run
use_website_config: true