summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-09-18 21:20:37 -0600
committermo k <mo@mokhan.ca>2012-09-18 21:20:37 -0600
commitc29be3991dde92192e7c2fc8af37ab6f6cb567bc (patch)
tree95f210282b97b9345014bc8680ab493a3a21fee0 /Rakefile
parent74bae9e16a9d7f14365d481d121afb8f95449071 (diff)
add rake test:ci target for buildbox
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index fb924f58..955f6db2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -49,3 +49,23 @@ task :restore do
sh "cap staging restore_db"
end
+namespace :test do
+ task :specs, [ :display ] => :environment do |t, args|
+ ENV['DISPLAY'] = args[:display] if args[:display]
+ Rake::Task['spec:suite:all'].invoke
+ end
+
+ task :jasmine, [ :display ] => :environment do |t, args|
+ ENV['DISPLAY'] = args[:display] if args[:display]
+ sh("bundle exec rake jasmine:ci")
+ end
+
+ task :all, [ :display ] => :environment do |t, args|
+ Rake::Task['test:jasmine'].invoke(args[:display])
+ Rake::Task['test:specs'].invoke(args[:display])
+ end
+
+ task :ci do
+ Rake::Task['test:all'].invoke(":99")
+ end
+end