Sha256: bb51a6d8f51f1c5d9032bd306701dde9e642b0fe34fca192274f5ddcb901e007
Contents?: true
Size: 588 Bytes
Versions: 26
Compression:
Stored size: 588 Bytes
Contents
require "rake/clean" require "bundler/gem_tasks" namespace :test do desc "Test MiniPortile by running unit tests" task :unit do sh "ruby -w -W2 -I. -Ilib -e \"#{Dir["test/test_*.rb"].map { |f| "require '#{f}';" }.join}\" -- #{ENV["TESTOPTS"]} -v" end desc "Test MiniPortile by compiling examples" task :examples do Dir.chdir("examples") do sh "rake ports:all" end end end task :clean do FileUtils.rm_rf ["examples/ports", "examples/tmp"], :verbose => true end desc "Run all tests" task :test => ["test:unit", "test:examples"] task :default => [:test]
Version data entries
26 entries across 23 versions & 4 rubygems