mirror of https://github.com/grafana/grafana
parent
0976a46cb3
commit
b6b152d9ea
@ -0,0 +1,13 @@ |
|||||||
|
coverage: |
||||||
|
precision: 2 |
||||||
|
round: down |
||||||
|
range: "50...100" |
||||||
|
|
||||||
|
status: |
||||||
|
project: yes |
||||||
|
patch: yes |
||||||
|
changes: no |
||||||
|
|
||||||
|
comment: |
||||||
|
layout: "diff" |
||||||
|
behavior: "once" |
||||||
@ -1,9 +1,14 @@ |
|||||||
module.exports = function(config, grunt) { |
module.exports = function(config, grunt) { |
||||||
'use strict'; |
'use strict'; |
||||||
|
|
||||||
|
var coverage = ''; |
||||||
|
if (config.coverage) { |
||||||
|
coverage = '--coverage --maxWorkers 2'; |
||||||
|
} |
||||||
|
|
||||||
return { |
return { |
||||||
tslint: 'node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json', |
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', |
webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js', |
||||||
}; |
}; |
||||||
}; |
}; |
||||||
|
|||||||
Loading…
Reference in new issue