Browse Source
ci: do not upload codecov bundle when TESTING=true
Signed-off-by: Spencer Murray <spencer.murray@sentry.io>
pull/52581/head
Spencer Murray
7 months ago
No known key found for this signature in database
GPG Key ID: 86F0F56E99B25932
1 changed files with
2 additions and
1 deletions
-
webpack.common.js
|
|
|
@ -19,6 +19,7 @@ const { codecovWebpackPlugin } = require('@codecov/webpack-plugin') |
|
|
|
|
|
|
|
const appVersion = readFileSync('./version.php').toString().match(/OC_Version.+\[([0-9]{2})/)?.[1] ?? 'unknown' |
|
|
|
const isDev = process.env.NODE_ENV === 'development' |
|
|
|
const isTesting = process.env.TESTING === "true" |
|
|
|
|
|
|
|
const formatOutputFromModules = (modules) => { |
|
|
|
// merge all configs into one object, and use AppID to generate the fileNames
|
|
|
|
@ -227,7 +228,7 @@ const config = { |
|
|
|
contextRegExp: /moment\/min$/, |
|
|
|
}), |
|
|
|
codecovWebpackPlugin({ |
|
|
|
enableBundleAnalysis: !isDev, |
|
|
|
enableBundleAnalysis: !isDev && !isTesting, |
|
|
|
bundleName: 'nextcloud', |
|
|
|
}), |
|
|
|
], |
|
|
|
|