mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 16:13:02 +08:00
Revert "removes codecov from frontend tests"
This commit is contained in:
@ -10,5 +10,10 @@ function exit_if_fail {
|
||||
fi
|
||||
}
|
||||
|
||||
exit_if_fail npm run test
|
||||
exit_if_fail npm run build
|
||||
exit_if_fail npm run test:coverage
|
||||
exit_if_fail npm run build
|
||||
|
||||
# publish code coverage
|
||||
echo "Publishing javascript code coverage"
|
||||
bash <(curl -s https://codecov.io/bash) -cF javascript
|
||||
rm -rf coverage
|
||||
|
@ -1,9 +1,14 @@
|
||||
module.exports = function(config, grunt) {
|
||||
'use strict';
|
||||
|
||||
var coverage = '';
|
||||
if (config.coverage) {
|
||||
coverage = '--coverage --maxWorkers 2';
|
||||
}
|
||||
|
||||
return {
|
||||
tslint: 'node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json',
|
||||
jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2',
|
||||
jest: 'node ./node_modules/jest-cli/bin/jest.js ' + coverage,
|
||||
webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js',
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user