forked from voxpupuli/json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request voxpupuli#211 from iainbeeston/more_rake_tasks
Added bundler gem management rake tasks
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
require 'rubygems' | ||
require 'bundler' | ||
require 'rake' | ||
require 'rake/testtask' | ||
|
||
Rake::TestTask.new do |t| | ||
Bundler::GemHelper.install_tasks | ||
|
||
desc "Updates the json-schema common test suite to the latest version" | ||
task :update_common_tests do | ||
unless File.read(".git/config").include?('submodule "test/test-suite"') | ||
sh "git submodule init" | ||
end | ||
sh "git submodule update" | ||
sh "git submodule update --quiet" | ||
end | ||
|
||
Rake::TestTask.new do |t| | ||
t.libs << "." | ||
t.test_files = FileList['test/test*.rb'] | ||
end | ||
|
||
task :test => :update_common_tests | ||
|
||
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters