mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 00:56:16 -04:00
ci: do not upload codecov bundle when TESTING=true
Signed-off-by: Spencer Murray <spencer.murray@sentry.io>
This commit is contained in:
parent
8b07a9be20
commit
4fe5c8a217
1 changed files with 2 additions and 1 deletions
|
|
@ -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',
|
||||
}),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue