Sha256: 62f78e835c3c0180be83940e09780e711f821d9d9fc2d634daf476f0f1854bfa

Contents?: true

Size: 772 Bytes

Versions: 40

Compression:

Stored size: 772 Bytes

Contents

require "rubygems"
require 'rubygems/user_interaction'
require 'rake/testtask'
require 'ci/reporter/rake/test_unit'
require 'bundler/gem_tasks'

Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

rule '.rb' => '.y' do |t|
  sh "racc -l -o #{t.name} #{t.source}"
end

desc "Compile the racc parser from the grammar"
task :compile => ["lib/sparkql/parser.rb", "grammar"]

desc "Generate grammar Documenation"
task :grammar do
  puts "Generating grammar documentation..."
  sh "ruby script/markdownify.rb > GRAMMAR.md"
end

Rake::Task[:test].prerequisites.unshift "lib/sparkql/parser.rb"
Rake::Task[:test].prerequisites.unshift "grammar"

desc 'Default: run unit tests.'
task :default => :test

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
sparkql-1.2.8 Rakefile
sparkql-1.2.7 Rakefile
sparkql-1.2.6 Rakefile
sparkql-1.2.5 Rakefile
sparkql-1.2.4 Rakefile
sparkql-1.2.3 Rakefile
sparkql-1.2.2 Rakefile
sparkql-1.2.1 Rakefile
sparkql-1.2.0 Rakefile
sparkql-1.1.17 Rakefile
sparkql-1.1.16 Rakefile
sparkql-1.1.15 Rakefile
sparkql-1.1.14 Rakefile
sparkql-1.1.13 Rakefile
sparkql-1.1.12 Rakefile
sparkql-1.1.11 Rakefile
sparkql-1.1.10 Rakefile
sparkql-1.1.9 Rakefile
sparkql-1.1.8 Rakefile
sparkql-1.1.7 Rakefile