aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGuillaume2017-10-17 11:21:13 +0200
committerGuillaume2017-10-17 11:21:13 +0200
commitdee6ebb323a044955bcdb1cefa1116ffd2c1f8ae (patch)
tree0073a0f7b4cbeedb0faf341e76534a5c7f32d5d9 /lib
parent99d2e53ff5dfb947c63c0bf360a97ef64565ed47 (diff)
downloadchouette-core-dee6ebb323a044955bcdb1cefa1116ffd2c1f8ae.tar.bz2
fix ci spec task Refs #4737
Diffstat (limited to 'lib')
-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