public
Description: New and ultra-turbo-crazy-fast backend for Thin
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin-turbo.git
thin-turbo / Rakefile
100644 30 lines (22 sloc) 0.667 kb
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
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
WIN = (RUBY_PLATFORM =~ /mswin|cygwin/)
SUDO = (WIN ? "" : "sudo")
THIN_TURBO_VERSION = '0.1.0'
 
require 'rake'
require 'rake/clean'
require 'spec/rake/spectask' unless RUBY_1_9
 
Dir['tasks/**/*.rake'].each { |rake| load rake }
 
task :default => [:compile, :test, :spec]
 
ext_task :thin_backend
 
ragel_task 'ext/thin_backend', 'parser.rl', 'parser.c'
 
task :test do
  cd('test') { sh 'make test' }
end
 
task 'test:clean' do
  cd('test') { sh 'make clean' }
end
task :clean => 'test:clean'
 
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts = %w(-fs -c)
  t.spec_files = FileList['spec/**/*_spec.rb']
end unless RUBY_1_9