-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (25 loc) · 876 Bytes
/
Rakefile
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
31
namespace :jasmine do
task :require do
require 'jasmine'
end
desc "Run continuous integration tests"
task :ci => "jasmine:require" do
require "spec"
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:jasmine_continuous_integration_runner) do |t|
t.spec_opts = ["--color", "--format", "specdoc"]
t.verbose = true
t.spec_files = ['spec/javascripts/support/jasmine_runner.rb']
end
Rake::Task["jasmine_continuous_integration_runner"].invoke
end
task :server => "jasmine:require" do
jasmine_config_overrides = 'spec/javascripts/support/jasmine_config.rb'
require jasmine_config_overrides if File.exists?(jasmine_config_overrides)
puts "your tests are here:"
puts " http://localhost:8888/"
Jasmine::Config.new.start_server
end
end
desc "Run specs via server"
task :jasmine => ['jasmine:server']