#284 coveralls integration

This commit is contained in:
Mario Romano 2016-06-28 15:05:30 +01:00
parent 95b824bdbd
commit 90c3abc37e
24 changed files with 53 additions and 28 deletions

2
.coveralls.yml Normal file
View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -37,4 +37,5 @@ before_script:
- ls -ltrh ./node_modules/
script: npm run test
# Send coverage data to Coveralls
#after_script: "cat ./ng2-components/$MODULE/coverage/lcov.info | ./ng2-components/$MODULE/node_modules/coveralls/bin/coveralls.js"
after_success:
- "cat ./coverage/report/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose"

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -67,7 +67,7 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@ -81,7 +81,8 @@ module.exports = function (config) {
reporters: [
{type: 'text'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
}

View File

@ -78,17 +78,18 @@
"material-design-lite": "^1.1.3"
},
"devDependencies": {
"cpx": "1.3.1",
"coveralls": "^2.11.9",
"cpx": "1.3.1",
"http-server": "0.8.5",
"jasmine-ajax": "3.2.0",
"jasmine-core": "2.4.1",
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-mocha-reporter": "2.0.3",
"karma-jasmine-html-reporter": "0.2.0",
"karma-mocha-reporter": "2.0.3",
"license-check": "1.1.5",
"remap-istanbul": "0.6.3",
"traceur": "0.0.91",

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -83,7 +83,8 @@ module.exports = function (config) {
reporters: [
{type: 'text'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
};

View File

@ -80,6 +80,7 @@
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-jasmine-html-reporter": "0.2.0",
"karma-mocha-reporter": "2.0.3",

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -70,7 +70,7 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@ -84,7 +84,8 @@ module.exports = function (config) {
reporters: [
{type: 'text'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
};

View File

@ -90,6 +90,7 @@
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-mocha-reporter": "2.0.3",
"karma-jasmine-html-reporter": "0.2.0",

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -69,7 +69,7 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@ -83,7 +83,8 @@ module.exports = function (config) {
reporters: [
{type: 'text'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
};

View File

@ -83,17 +83,18 @@
"rimraf": "2.5.2",
"ng2-translate": "2.2.2",
"ng2-alfresco-core": "0.1.35",
"alfresco-js-api": "0.1.0"
"alfresco-js-api": "0.1.0",
"coveralls": "^2.11.9"
},
"devDependencies": {
"concurrently": "2.1.0",
"coveralls": "2.11.9",
"cpx": "1.3.1",
"http-server": "0.8.5",
"jasmine-core": "2.4.1",
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-mocha-reporter": "2.0.3",
"karma-jasmine-html-reporter": "0.2.0",

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -1,6 +0,0 @@
language: node_js
node_js:
- '5'
script: npm run coverage
# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

View File

@ -73,7 +73,7 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@ -88,7 +88,8 @@ module.exports = function (config) {
{type: 'text'},
{type: 'text-summary'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
};

View File

@ -91,6 +91,7 @@
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-mocha-reporter": "2.0.3",
"karma-jasmine-html-reporter": "0.2.0",

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -70,7 +70,7 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@ -84,7 +84,8 @@ module.exports = function (config) {
reporters: [
{type: 'text'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
};

View File

@ -94,6 +94,7 @@
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "0.1.13",
"karma-jasmine-html-reporter": "0.2.0",

View File

@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@ -60,7 +60,7 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
@ -74,7 +74,8 @@ module.exports = function (config) {
reporters: [
{type: 'text'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
})

View File

@ -86,6 +86,7 @@
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-jasmine-ajax": "0.1.13",
"karma-jasmine-html-reporter": "0.2.0",