Commit 61b2100b by Torkel Ödegaard Committed by GitHub

Merge pull request #13317 from bergquist/nuke_codecov

disable codecov
parents d964a650 0f8b9b8f
...@@ -25,7 +25,6 @@ module.exports = function (grunt) { ...@@ -25,7 +25,6 @@ module.exports = function (grunt) {
} }
} }
config.coverage = grunt.option('coverage');
config.phjs = grunt.option('phjsToRelease'); config.phjs = grunt.option('phjsToRelease');
config.pkg.version = grunt.option('pkgVer') || config.pkg.version; config.pkg.version = grunt.option('pkgVer') || config.pkg.version;
......
coverage:
precision: 2
round: down
range: "50...100"
status:
project: yes
patch: yes
changes: no
comment: off
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
"watch": "webpack --progress --colors --watch --mode development --config scripts/webpack/webpack.dev.js", "watch": "webpack --progress --colors --watch --mode development --config scripts/webpack/webpack.dev.js",
"build": "grunt build", "build": "grunt build",
"test": "grunt test", "test": "grunt test",
"test:coverage": "grunt test --coverage=true",
"lint": "tslint -c tslint.json --project tsconfig.json", "lint": "tslint -c tslint.json --project tsconfig.json",
"jest": "jest --notify --watch", "jest": "jest --notify --watch",
"api-tests": "jest --notify --watch --config=tests/api/jest.js", "api-tests": "jest --notify --watch --config=tests/api/jest.js",
......
...@@ -17,17 +17,7 @@ echo "building backend with install to cache pkgs" ...@@ -17,17 +17,7 @@ echo "building backend with install to cache pkgs"
exit_if_fail time go install ./pkg/cmd/grafana-server exit_if_fail time go install ./pkg/cmd/grafana-server
echo "running go test" echo "running go test"
set -e set -e
echo "" > coverage.txt
time for d in $(go list ./pkg/...); do time for d in $(go list ./pkg/...); do
exit_if_fail go test -coverprofile=profile.out -covermode=atomic $d exit_if_fail go test -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done done
echo "Publishing go code coverage"
bash <(curl -s https://codecov.io/bash) -cF go
...@@ -10,9 +10,5 @@ function exit_if_fail { ...@@ -10,9 +10,5 @@ function exit_if_fail {
fi fi
} }
exit_if_fail npm run test:coverage exit_if_fail npm run test
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
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/tslintCli.js -c tslint.json --project ./tsconfig.json', tslint: 'node ./node_modules/tslint/lib/tslintCli.js -c tslint.json --project ./tsconfig.json',
jest: 'node ./node_modules/jest-cli/bin/jest.js ' + coverage, jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2',
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',
}; };
}; };
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