mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
check avoid caching node modules
This commit is contained in:
+6
-1
@@ -47,7 +47,7 @@ dist: trusty
|
||||
cache:
|
||||
bundler: true
|
||||
directories:
|
||||
- frontend/node_modules
|
||||
- frontend/node_modules/foundation-apps
|
||||
- public/assets
|
||||
- app/assets/javascripts/bundles
|
||||
- app/assets/javascripts/locales
|
||||
@@ -69,6 +69,11 @@ before_install:
|
||||
# Don't install 1.16.3
|
||||
- gem install bundler -v 1.16.2
|
||||
|
||||
# Install Node latest LTS
|
||||
# This should only be necessary when preparing the cache or for npm test runs
|
||||
# but installing later fails for unknown reasons.
|
||||
- nvm install --lts
|
||||
|
||||
bundler_args: --binstubs --without development production docker
|
||||
|
||||
stages:
|
||||
|
||||
@@ -42,9 +42,6 @@ run "cp script/templates/database.travis.mysql.yml config/database.yml"
|
||||
|
||||
run "bundle exec rake db:migrate"
|
||||
|
||||
# Install Node latest LTS
|
||||
run "nvm install --lts"
|
||||
|
||||
run "for i in {1..3}; do npm install && break || sleep 15; done"
|
||||
|
||||
run "bundle exec rails assets:precompile assets:clean"
|
||||
|
||||
@@ -56,9 +56,6 @@ if [ $1 != 'npm' ]; then
|
||||
fi
|
||||
|
||||
if [ $1 = 'npm' ]; then
|
||||
# Install Node latest LTS
|
||||
run "nvm install --lts"
|
||||
|
||||
run "for i in {1..3}; do npm install && break || sleep 15; done"
|
||||
echo "No asset compilation required"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user