File: Rakefile

package info (click to toggle)
ruby-rr 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,436 kB
  • ctags: 1,404
  • sloc: ruby: 11,657; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 630 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
24
25
26
27
28
29
30
31
32
33
require 'rubygems'
require 'bundler'
require 'rake'

require 'pp'

# build, install, release
require 'bundler/gem_tasks'

begin
  # appraisal
  require 'appraisal'

  # appraisals
  Appraisal::File.each do |appraisal|
    desc "Resolve and install dependencies for the #{appraisal.name} appraisal"
    task "appraisal:#{appraisal.name}:install" do
      appraisal.install
    end
  end
rescue LoadError
end

# spec
require File.expand_path('../spec/defines_spec_suite_tasks', __FILE__)
DefinesSpecSuiteTasks.call

desc "Run tests"
task :test do
  ruby("test/run-test.rb")
end

task :default => ['appraisal:install', :spec, :test]