Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (45 sloc) 1.26 KB
require 'yaml'
require 'rake/clean'
require 'ftools'
require 'cucumber'
require 'cucumber/rake/task'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
#import rake tasks
if(ENV['BUILD_TOOLS_PATH'])
puts "Importing rake tasks from #{ENV['BUILD_TOOLS_PATH']}rake"
Dir.glob("#{ENV['BUILD_TOOLS_PATH']}rake/*.rake").each { |r| import r }
elsif(File.directory?('rake'))
puts "Importing tasks from the rake directory"
Dir.glob('rake/*.rake').each { |r| import r }
else
puts 'No external rake tasks imported'
end
#Set paths to clean and clobber
CLEAN.add 'test/output/*'
CLEAN.add 'test/parser/*'
CLOBBER.add 'tmp/'
#set a scope variable that always points to the directory
@directory = File.dirname(__FILE__)
desc "Clean and clobber"
task :clean_and_clobber => [:clean, :clobber] do
puts "Finished and cleaned."
end
#Actual tasks for this project used by teamcity
desc "Unit tests"
task :unit_test do
puts `node specs.js`
end
Cucumber::Rake::Task.new(:test_node) do |t|
t.profile = "node"
end
Cucumber::Rake::Task.new(:test_connect) do |t|
t.profile = "connect"
end
desc "Full test"
task :full_test => [:unit_test, :test_node, :test_connect] do
puts "Running full test suite"
end
desc "Default"
task :default => [:full_test] do
puts "Default"
end
Jump to Line
Something went wrong with that request. Please try again.