forked from berrynorth/muramasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
executable file
·97 lines (78 loc) · 2.36 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
############################################
########## OCT Sauce Rake Commands ##########
############################################
def run_oct_web(platform, browser, version, junit_dir)
system("platform=\"#{platform}\" browserName=\"#{browser}\" version=\"#{version}\" JUNIT_DIR=\"#{junit_dir}\" USESAUCE=true parallel_rspec spec/features/oc_tanner/web_test")
end
task :windows_8_chrome_51_oct do
run_oct_web('Windows 8.1', 'chrome', '51', 'junit_reports/windows_7_chrome_51')
end
multitask :test_oct_web => [
:windows_8_chrome_51_oct
] do
puts 'Saucey: Tested OCT Web'
end
############################################
########## OCT Local Rake Commands ##########
############################################
def run_oct_web_local
system("APP_ENV='#{@APP_ENV}' parallel_rspec spec/features/oc_tanner/web_test")
end
task :oct_web_dev do
@APP_ENV = 'dev'
run_oct_web_local
end
task :oct_web_prod do
@APP_ENV = 'prod'
run_oct_web_local
end
task :oct_web_qa do
@APP_ENV = 'qa'
run_oct_web_local
end
multitask :oct_web_local_all => [
:oct_web_qa,
:oct_web_stage,
:oct_web_prod
] do
puts 'Tested OCT Web All Environments'
end
################################################
########## Google Sauce Rake Commands ##########
################################################
def run_google_web(platform, browser, version, junit_dir)
system("platform=\"#{platform}\" browserName=\"#{browser}\" version=\"#{version}\" JUNIT_DIR=\"#{junit_dir}\" USESAUCE=true parallel_rspec spec/features/google/web_test")
end
task :windows_8_chrome_51_google do
run_google_web('Windows 8.1', 'chrome', '51', 'junit_reports/windows_7_chrome_51')
end
multitask :test_google_web => [
:windows_8_chrome_51_google
] do
puts 'Saucey: Tested Google Web'
end
################################################
########## Google Local Rake Commands ##########
################################################
def run_google_web_local
system("APP_ENV='#{@APP_ENV}' parallel_rspec spec/features/google/web_test")
end
task :google_web_dev do
@APP_ENV = 'dev'
run_google_web_local
end
task :google_web_prod do
@APP_ENV = 'prod'
run_google_web_local
end
task :google_web_qa do
@APP_ENV = 'qa'
run_google_web_local
end
multitask :google_web_local_all => [
:google_web_qa,
:google_web_stage,
:google_web_prod
] do
puts 'Tested Google Web All Environments'
end