diff options
| author | Luc Donnet | 2018-02-01 11:31:56 +0100 |
|---|---|---|
| committer | cedricnjanga | 2018-02-06 11:10:18 -0800 |
| commit | 387450bd2a929d4a8ae6cc77182859f8c8587786 (patch) | |
| tree | e4c53f3fd7b68700ddd1db145796ed8ee8b97806 | |
| parent | 5c45c5d9ab4a7a7d64c4a73c7908861824fd8ee4 (diff) | |
| download | chouette-core-387450bd2a929d4a8ae6cc77182859f8c8587786.tar.bz2 | |
Fix yarn installation with no production for ci and force yarn install before jest launch du to webpacker bug
| -rw-r--r-- | lib/tasks/ci.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 82619d04b..13d7b8d73 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -3,7 +3,7 @@ namespace :ci do task :setup do cp "config/database/jenkins.yml", "config/database.yml" sh "RAILS_ENV=test rake db:drop db:create db:migrate" - sh "yarn --production --no-progress install" + sh "yarn --no-progress install" end def git_branch @@ -38,6 +38,7 @@ namespace :ci do end task :jest => "ci:assets" do + sh "yarn --no-progress install" # Hack to force install jest after webpack sh "node_modules/.bin/jest" unless ["CHOUETTE_JEST_DISABLED"] end |
