Skip to content

Commit

Permalink
Drop rspec and rubocop toys, just use bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWayfer committed Dec 2, 2020
1 parent ab65f17 commit 7538b8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rubocop_task:
image: ruby:latest
<<: *bundle_cache

lint_script: toys rubocop --format=json --out=rubocop.json
lint_script: bundle exec rubocop --format=json --out=rubocop.json

always:
rubocop_artifacts:
Expand Down Expand Up @@ -62,7 +62,7 @@ rspec_task:
environment:
CODECOV_TOKEN: ENCRYPTED[b26ecd3e49540f09f5c9bf830caa29f5daedaf6769d6b1ba1a650eb6e81432ffb857f19421aed8e8dfddf21724fb57b6]

test_script: toys rspec --format=json --out=rspec.json
test_script: bundle exec rspec --format=json --out=rspec.json

always:
rspec_artifacts:
Expand Down
23 changes: 0 additions & 23 deletions .toys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,7 @@

include :bundler, static: true

subtool_apply do
include :exec, exit_on_nonzero_status: true, log_level: Logger::UNKNOWN unless include? :exec
end

require 'gem_toys'
expand GemToys::Template

alias_tool :g, :gem

tool :rspec do
disable_argument_parsing

def run
exec ['rspec', *args]
end
end

alias_tool :spec, :rspec
alias_tool :test, :rspec

tool :rubocop do
disable_argument_parsing

def run
exec ['rubocop', *args]
end
end

0 comments on commit 7538b8c

Please sign in to comment.