diff options
| author | Robert | 2017-10-17 12:18:07 +0200 |
|---|---|---|
| committer | Robert | 2017-10-17 12:18:07 +0200 |
| commit | f6bfa739829863a0f9b784fd51a0aa9e25091e6a (patch) | |
| tree | 26033b3edaadc0739c036df59c1045c7b4947b59 /lib/tasks/ci.rake | |
| parent | 38de9145c750b52297abbffa1f31f1829a1c6b43 (diff) | |
| parent | 58cfec64c621d1c6893280f5ad8793af81573199 (diff) | |
| download | chouette-core-f6bfa739829863a0f9b784fd51a0aa9e25091e6a.tar.bz2 | |
Merge branch 'master' of github.com:af83/stif-boiv
Diffstat (limited to 'lib/tasks/ci.rake')
| -rw-r--r-- | lib/tasks/ci.rake | 13 |
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"] |
