mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Install coveralls
This commit is contained in:
parent
f73f1bd196
commit
b1dec7b6dd
2 changed files with 10 additions and 3 deletions
|
@ -36,6 +36,10 @@ before_script:
|
|||
script:
|
||||
- "./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters dots"
|
||||
- "npm run jasmine"
|
||||
- "npm run coverage"
|
||||
|
||||
after_script:
|
||||
- "npm install coveralls && cat ./coverage/lcov.info | coveralls"
|
||||
|
||||
notifications:
|
||||
slack:
|
||||
|
|
|
@ -35,9 +35,12 @@ console.log(`Converted ${convertedFiles.length} server coffeescript files. Runni
|
|||
child_process.execSync('istanbul cover ./node_modules/jasmine/bin/jasmine.js')
|
||||
|
||||
// Cleanup
|
||||
console.log('Coverage report generated. Deleting converted files...')
|
||||
for (file of convertedFiles) {
|
||||
fs.unlinkSync(file)
|
||||
if(!process.env.COCO_TRAVIS_TEST) {
|
||||
console.log('Coverage report generated. Deleting converted files...')
|
||||
for (file of convertedFiles) {
|
||||
fs.unlinkSync(file)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
console.log('Done.')
|
||||
|
|
Loading…
Reference in a new issue