Sha256: 9ae7fc5fb23e86c59ce29dd408f10db1429451edaa6601b3b2ff311abd69b9d1
Contents?: true
Size: 1.12 KB
Versions: 14
Compression:
Stored size: 1.12 KB
Contents
require "nenv" require "bundler/gem_tasks" require "yaml" default_tasks = [] require "rspec/core/rake_task" default_tasks << RSpec::Core::RakeTask.new(:spec) do |t| t.verbose = Nenv.ci? end unless Nenv.ci? require "rubocop/rake_task" default_tasks << RuboCop::RakeTask.new(:rubocop) end task default: default_tasks.map(&:name) namespace :test do desc "Locally run tests like Travis and HoundCI would" task :all_versions do system(*%w(bundle install --quiet)) || abort system(*%w(bundle update --quiet)) || abort system(*%w(bundle exec rubocop -c .hound.yml)) || abort travis = YAML.load(IO.read(".travis.yml")) travis["gemfile"].each do |gemfile| STDOUT.puts STDOUT.puts "----------------------------------------------------- " STDOUT.puts " >> Running tests using Gemfile: #{gemfile} <<" STDOUT.puts "----------------------------------------------------- " env = { "BUNDLE_GEMFILE" => gemfile } system(env, *%w(bundle install --quiet)) || abort system(env, *%w(bundle update --quiet)) || abort system(env, *%w(bundle exec rspec)) || abort end end end
Version data entries
14 entries across 14 versions & 3 rubygems