aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/ci.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/ci.rake')
-rw-r--r--lib/tasks/ci.rake7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index ace042546..9896a3115 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -31,8 +31,10 @@ namespace :ci do
sh "bundle exec bundle-audit check --update"
end
- task :spec do
- sh "bundle exec rake spec"
+ task :spec => ["ci:assets","spec"]
+
+ task :assets do
+ sh "RAILS_ENV=test bundle exec rake assets:precompile"
end
desc "Deploy after CI"
@@ -47,6 +49,7 @@ namespace :ci do
desc "Clean test files"
task :clean do
sh "rm -rf log/test.log"
+ sh "RAILS_ENV=test bundle exec rake assets:clobber"
end
end