mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Adding coveralls
This commit is contained in:
+4
-2
@@ -1,6 +1,8 @@
|
||||
.idea
|
||||
*.iml
|
||||
node_modules
|
||||
.idea
|
||||
.tscache
|
||||
.DS_Store
|
||||
node_modules/
|
||||
coverage/
|
||||
test/typescript/axios.js*
|
||||
|
||||
|
||||
@@ -4,3 +4,5 @@ email:
|
||||
on_success: never
|
||||
before_script:
|
||||
- npm install -g grunt-cli
|
||||
after_success:
|
||||
- npm run coveralls
|
||||
|
||||
+7
-2
@@ -29,15 +29,20 @@ module.exports = function(config) {
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
preprocessors: {
|
||||
|
||||
'dist/axios.js': 'coverage'
|
||||
},
|
||||
|
||||
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ['progress'],
|
||||
reporters: ['progress', 'coverage'],
|
||||
|
||||
coverageReporter: {
|
||||
type: 'lcov',
|
||||
dir: 'coverage/',
|
||||
subdir: '.'
|
||||
},
|
||||
|
||||
// web server port
|
||||
port: 9876,
|
||||
|
||||
+4
-1
@@ -5,7 +5,8 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "grunt test",
|
||||
"start": "node ./sandbox/server.js"
|
||||
"start": "node ./sandbox/server.js",
|
||||
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -28,6 +29,7 @@
|
||||
"es6-promise": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "^2.11.2",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-banner": "^0.3.1",
|
||||
"grunt-contrib-clean": "^0.6.0",
|
||||
@@ -39,6 +41,7 @@
|
||||
"grunt-update-json": "^0.2.1",
|
||||
"grunt-webpack": "^1.0.8",
|
||||
"karma": "^0.12.31",
|
||||
"karma-coverage": "^0.2.7",
|
||||
"karma-jasmine": "^0.3.5",
|
||||
"karma-jasmine-ajax": "^0.1.12",
|
||||
"karma-phantomjs-launcher": "^0.1.4",
|
||||
|
||||
Reference in New Issue
Block a user