Skip to content

Commit

Permalink
Update submodules before running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fd committed May 29, 2011
1 parent 6f05750 commit c419c50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -9,6 +9,11 @@ RSpec::Core::RakeTask.new do |t|
'-r', File.expand_path("../spec/spec_helper.rb", __FILE__)]
end

task :checkout_conformance_tests do
sh "git submodule init"
sh "git submodule update"
end

task :build_parser do
sh "bundle exec tt lib/json_select/selector_parser.tt -o lib/json_select/selector_parser.rb"

Expand All @@ -18,6 +23,6 @@ task :build_parser do
File.open(path, 'w+') { |f| f.write src }
end

task :spec => :build_parser
task :spec => [:checkout_conformance_tests, :build_parser]
task :build => :build_parser
task :default => :spec

0 comments on commit c419c50

Please sign in to comment.