mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
move compile and spec into separate files
This commit is contained in:
parent
64e9cbc883
commit
6e7eae5bc1
2 changed files with 10 additions and 7 deletions
7
Rakefile
7
Rakefile
|
@ -1,5 +1,4 @@
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'spec/rake/spectask'
|
|
||||||
|
|
||||||
UPSTREAM = "ext/v8/upstream"
|
UPSTREAM = "ext/v8/upstream"
|
||||||
SCONS = "#{UPSTREAM}/scons"
|
SCONS = "#{UPSTREAM}/scons"
|
||||||
|
@ -25,12 +24,6 @@ end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Spec::Rake::SpecTask.new(:spec) do |spec|
|
|
||||||
spec.libs << 'lib' << 'spec'
|
|
||||||
spec.spec_files = FileList['spec/**/*_spec.rb']
|
|
||||||
end
|
|
||||||
task :spec => :compile
|
|
||||||
|
|
||||||
desc "Build gem"
|
desc "Build gem"
|
||||||
task :gem do
|
task :gem do
|
||||||
Gem::Builder.new($gemspec).build
|
Gem::Builder.new($gemspec).build
|
||||||
|
|
10
tasks/spec.rake
Normal file
10
tasks/spec.rake
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
begin
|
||||||
|
require 'spec/rake/spectask'
|
||||||
|
Spec::Rake::SpecTask.new(:spec) do |spec|
|
||||||
|
spec.libs << 'lib' << 'spec'
|
||||||
|
spec.spec_files = FileList['spec/**/*_spec.rb']
|
||||||
|
end
|
||||||
|
task :spec => :compile
|
||||||
|
rescue LoadError => e
|
||||||
|
puts "unable to run specs from rake. gem install rspec"
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue