aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorAlban Peignier2017-10-17 11:56:08 +0200
committerAlban Peignier2017-10-17 11:56:08 +0200
commit545671efd71380722dbc3272f5f513ea684891bd (patch)
treee8e1101bf2c8046d61d5185cce8d0b4245ad2183 /lib/tasks
parentf480ad0739e5c0ec2c0c8bb890344b9c4777ba35 (diff)
parent58cfec64c621d1c6893280f5ad8793af81573199 (diff)
downloadchouette-core-545671efd71380722dbc3272f5f513ea684891bd.tar.bz2
Merge branch 'master' into staging
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/ci.rake13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index ace042546..3e73b7a3b 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -31,8 +31,14 @@ 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
+
+ task :jest => "ci:assets" do
+ sh "node_modules/.bin/jest"
end
desc "Deploy after CI"
@@ -47,8 +53,9 @@ 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
desc "Run continuous integration tasks (spec, ...)"
-task :ci => ["ci:setup", "ci:spec", "cucumber", "ci:check_security", "ci:deploy", "ci:clean"]
+task :ci => ["ci:setup", "ci:spec", "ci:jest", "cucumber", "ci:check_security", "ci:deploy", "ci:clean"]