Commit 76499825 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'fix-broken-yarn-deps' into 'master'

Fix broken Yarn dependencies

Closes #33886 and #34944

See merge request !13614
parents 955d684c c448d18c
......@@ -259,7 +259,7 @@ setup-test-env:
<<: *default-cache
script:
- node --version
- yarn install --pure-lockfile --cache-folder .yarn-cache
- yarn install --frozen-lockfile --cache-folder .yarn-cache
- bundle exec rake gettext:po_to_json
- bundle exec rake gitlab:assets:compile
- bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
......@@ -508,7 +508,7 @@ gitlab:assets:compile:
WEBPACK_REPORT: "true"
NO_COMPRESSION: "true"
script:
- yarn install --pure-lockfile --production --cache-folder .yarn-cache
- yarn install --frozen-lockfile --production --cache-folder .yarn-cache
- bundle exec rake gettext:po_to_json
- bundle exec rake gitlab:assets:compile
artifacts:
......
......@@ -276,14 +276,9 @@ if (IS_PRODUCTION) {
})
);
// zopfli requires a lot of compute time and is disabled in CI
// compression can require a lot of compute time and is disabled in CI
if (!NO_COMPRESSION) {
// gracefully fall back to gzip if `node-zopfli` is unavailable (e.g. in CentOS 6)
try {
config.plugins.push(new CompressionPlugin({ algorithm: 'zopfli' }));
} catch(err) {
config.plugins.push(new CompressionPlugin({ algorithm: 'gzip' }));
}
config.plugins.push(new CompressionPlugin());
}
}
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment