From 5aec3648aef7b3cfc7f1601d472cab551b9ad54d Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Thu, 24 Aug 2017 09:34:34 +0200 Subject: Add --profile option to rspec during ci tasks --- lib/tasks/ci.rake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/tasks/ci.rake') diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 658e4e04e..d9828ae15 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -27,11 +27,14 @@ namespace :ci do sh "bundle exec bundle-audit check --update" end + task :spec do + sh "bundle exec rspec --profile" + end + task :teaspoon do sh "RAILS_ENV=test bundle exec rake teaspoon" end - desc "Deploy after CI" task :deploy do sh "cap #{deploy_env} deploy:migrations" @@ -44,4 +47,4 @@ namespace :ci do end desc "Run continuous integration tasks (spec, ...)" -task :ci => ["ci:setup", "spec", "ci:teaspoon", "cucumber", "ci:check_security", "ci:deploy", "ci:clean"] +task :ci => ["ci:setup", "ci:spec", "ci:teaspoon", "cucumber", "ci:check_security", "ci:deploy", "ci:clean"] -- cgit v1.2.3