File: Rakefile

package info (click to toggle)
ruby-mini-portile2 2.8.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: ruby: 1,834; ansic: 38; sh: 8; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "rake/clean"
require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new("test:unit")

namespace :test do
  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]