-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
40 lines (28 loc) · 957 Bytes
/
Rakefile
File metadata and controls
40 lines (28 loc) · 957 Bytes
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
32
33
34
35
36
37
38
39
40
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'rake/dsl_definition'
require 'rubygems'
include Rake::DSL
begin
task :faster => ['parallel:prepare', 'parallel:spec', :scenario, 'spec:javascript']
namespace :test do
desc "Run fast build (for pre-checkin, fast_build on build server)"
task :fast => [:spec, :scenario, 'spec:javascript']
desc "Ensure assets are precompiled before jasmine tests"
task :javascript => [:precompile_test_assets] do
fail_on_error('rake spec:javascript')
end
private
def fail_on_error(cmd)
raise "Could not complete task #{cmd}" unless system(cmd)
end
end
rescue LoadError
end
Tijuana::Application.load_tasks
task :default => 'test:fast'
task :putsenv do
pp ENV, STDERR
end