1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-05 19:28:50 +01:00
choosealicense.com/Rakefile

15 lines
334 B
Ruby
Raw Normal View History

2013-10-23 09:07:51 +02:00
require "html/proofer"
2015-03-07 18:47:24 +01:00
require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = ["--order", "rand", "--color"]
end
2013-10-23 09:07:51 +02:00
task :test do
sh "bundle exec jekyll build --trace"
2015-03-07 18:58:57 +01:00
HTML::Proofer.new("./_site", :check_html => true).run
2015-03-07 18:49:49 +01:00
Rake::Task["spec"].invoke
2013-10-23 09:07:51 +02:00
end