-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
39 lines (31 loc) · 1006 Bytes
/
Rakefile
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
34
35
36
37
38
39
require 'rake/clean'
require 'bundler/gem_tasks'
require 'rubygems/tasks'
require 'rspec/core/rake_task'
# This is used by the Yardoc stuff in docile's Rakefile. We're not there yet.
require File.expand_path('on_what', File.dirname(__FILE__))
# Default task for `rake` is to run rspec
task :default => [:spec]
# Use default rspec rake task
RSpec::Core::RakeTask.new do |t|
t.verbose = false
end
task :unitspec do
sh('rspec', *Dir.glob('spec/{cli,dsl,executor,struct}'))
end
# Configure `rake clobber` to delete all generated files
CLOBBER.include('pkg', 'doc', 'coverage', '*.gem')
# Add the gem tasks:
# :build, :console, :install, :release
Gem::Tasks.new
if !on_travis? && !on_jruby? && !on_1_8?
require 'github/markup'
require 'redcarpet'
require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new do |t|
OTHER_PATHS = %w()
t.files = ['lib/**/*.rb', OTHER_PATHS]
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md)
end
end