Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d5842e74
Commit
d5842e74
authored
Jul 02, 2019
by
Lukas Eipert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer offline install for yarn
parent
e07ebe66
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.gitlab/ci/frontend.gitlab-ci.yml
.gitlab/ci/frontend.gitlab-ci.yml
+3
-3
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+1
-1
lib/tasks/yarn.rake
lib/tasks/yarn.rake
+1
-1
No files found.
.gitlab/ci/frontend.gitlab-ci.yml
View file @
d5842e74
...
...
@@ -32,7 +32,7 @@
DOCKER_HOST
:
tcp://docker:2375
script
:
-
node --version
-
retry yarn install --frozen-lockfile --production --cache-folder .yarn-cache
-
retry yarn install --frozen-lockfile --production --cache-folder .yarn-cache
--prefer-offline
-
free -m
-
retry bundle exec rake gitlab:assets:compile
-
time scripts/build_assets_image
...
...
@@ -82,7 +82,7 @@ gitlab:assets:compile pull-cache:
stage
:
prepare
script
:
-
node --version
-
retry yarn install --frozen-lockfile --cache-folder .yarn-cache
-
retry yarn install --frozen-lockfile --cache-folder .yarn-cache
--prefer-offline
-
free -m
-
retry bundle exec rake gitlab:assets:compile
-
scripts/clean-old-cached-assets
...
...
@@ -231,7 +231,7 @@ qa:selectors:
before_script
:
[]
script
:
-
date
-
yarn install --frozen-lockfile --cache-folder .yarn-cache
-
yarn install --frozen-lockfile --cache-folder .yarn-cache
--prefer-offline
-
date
-
yarn run webpack-prod
...
...
.gitlab/ci/review.gitlab-ci.yml
View file @
d5842e74
...
...
@@ -236,5 +236,5 @@ danger-review:
script
:
-
git version
-
node --version
-
yarn install --frozen-lockfile --cache-folder .yarn-cache
-
yarn install --frozen-lockfile --cache-folder .yarn-cache
--prefer-offline
-
danger --fail-on-errors=true
lib/tasks/yarn.rake
View file @
d5842e74
...
...
@@ -24,7 +24,7 @@ namespace :yarn do
desc
'Install Node dependencies with Yarn'
task
install:
[
'yarn:available'
]
do
unless
system
(
'yarn install --pure-lockfile --ignore-engines'
)
unless
system
(
'yarn install --pure-lockfile --ignore-engines
--prefer-offline
'
)
abort
'Error: Unable to install node modules.'
.
color
(
:red
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment