aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuc Donnet2018-02-01 11:31:56 +0100
committercedricnjanga2018-02-06 11:10:18 -0800
commit387450bd2a929d4a8ae6cc77182859f8c8587786 (patch)
treee4c53f3fd7b68700ddd1db145796ed8ee8b97806 /lib
parent5c45c5d9ab4a7a7d64c4a73c7908861824fd8ee4 (diff)
downloadchouette-core-387450bd2a929d4a8ae6cc77182859f8c8587786.tar.bz2
Fix yarn installation with no production for ci and force yarn install before jest launch du to webpacker bug
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/ci.rake3
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