mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 03:53:43 +03:00
Setup coverage and coveralls
This commit is contained in:
parent
0c6ded776a
commit
6b4c7e44e3
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -26,3 +26,4 @@ jspm_packages
|
||||||
/dist
|
/dist
|
||||||
/demo/build
|
/demo/build
|
||||||
.tmp
|
.tmp
|
||||||
|
/coverage
|
||||||
|
|
|
@ -6,6 +6,7 @@ env:
|
||||||
- GH_REF: github.com/Rebilly/ReDoc.git
|
- GH_REF: github.com/Rebilly/ReDoc.git
|
||||||
- secure: ijk9zRQxw1XKVt1zjuJ4uc3iyU622HB0qSPdwVECqhUMm3Gh3MAmTH1bqubsSHKZbfNNIehUvu+X/3LeKZNUK+zBS8qbLXWQKZ4ime4RHT8ADjZV+NY2GdQUxs5rklb3kjVK6cOQ8A51jU/8Zw738iFDDPz3NxbXC+MP3CQANxYCeX2axdxVFzQcldA89vZr0K8DBMPW1EZP+e1jORB3YFwyKZMppB9XvI7GAjt2OQvZDQegNuVaPuECZcJjPh2VBopQ3+Giun2AIe3C0Q/DmU+rZd8M2/t2VEv0e6BZNtbpycq8ST3mWloTPhmL9F2xlm4ZuWUVWuxB3LgOTZUw11KRg51MUTv/9Xfrqf16CUvR4TJ7EDYAKt5NwVFNUJsIy9cpuI6fsndFeI7EWFFYN7m4FX/SWLhVzFcrZeWpwbMn+qFCE0S+VgUjwYwMMA667YgRPhIAGoJfL5MxrhE/HPUIDJU91t9ON7UpFcdcUex6jX9pKUvyP52uJQKIwP10ZgehvL3S0iutMYVYY0YNkKF4tIPiQPsCK4lx7Up4D/tR9jSZl11CLMBZ0jLk1sEtgMf9+v0emOiGIgmBBYwVec6Jy1kSJyEeAJThmLjdVtAVgT0T3jPhM0Z8BE0xkwFY/5myQeoo8QWdBcDZw3iAxgatHXnPLqoa5rViuA1thyw=
|
- secure: ijk9zRQxw1XKVt1zjuJ4uc3iyU622HB0qSPdwVECqhUMm3Gh3MAmTH1bqubsSH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sc41I/sY7E5zt8L/8VYIgrhtPOVE9Dx+UAX49Iq+VxcbmLVBsKkyZu13VA0tGlU22T3PW4IbD70+/dpR4Cd60NuTdjyIlrhNAfWBDFRuK7D+0FRyf8hTC0E7ecx0KTWxaRO4pKa6uFmYW3614et9Pla95BIXrRzAkUmAkAKbng6c30Y/pmqeZASAZuMob8VCELjCHXiuCzIxWoWo/Vfea6aUFgFpSn8vp625oc32Y5jhy1SnwSRpxMbKE6aTe4Otfo36qsLtokKM2ABgl1AEgp/QKPusnjuQi4RThfCYU5tmTtqij/a4Lj5NUAyOcMSgj5hZncRWynApvIAgfBeruYpWF++F2SMyox7+p5jJOThLczLxMn4pikh9O6rvTMVVXIhapnIaH4v9HWssousBSAnmU2+Y9Eltzikh5iFmPUcgXiq4ULmxMagYDllNO15lGMgbc6lJAJfwZ4293vEpJHdHy8jIKYe5eZwSBe0axUB/3oshnQlPptcSVCTuJM0anWOlsZz2mvfXFDZ628bNf/PGoTYtw9TGtMu/RoGAKQrFTyzx/9OmQQyBwDD5jQGKt//gf48g/fXdCyAQ=
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
|
@ -1,7 +1,37 @@
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
|
var travis = process.env.TRAVIS;
|
||||||
config.set({
|
config.set({
|
||||||
frameworks: ['phantomjs-shim', 'jspm', 'mocha', 'chai', 'sinon'],
|
frameworks: ['phantomjs-shim', 'jspm', 'mocha', 'chai', 'sinon'],
|
||||||
|
preprocessors: {
|
||||||
|
'lib/**/!(*spec).js': ['babel', 'coverage']
|
||||||
|
},
|
||||||
|
babelPreprocessor: {
|
||||||
|
options: {
|
||||||
|
sourceMap: 'inline',
|
||||||
|
"optional": [
|
||||||
|
"runtime",
|
||||||
|
"optimisation.modules.system",
|
||||||
|
"es7.decorators",
|
||||||
|
"es7.classProperties"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
sourceFileName: function(file) {
|
||||||
|
return file.originalPath;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
coverageReporter: {
|
||||||
|
instrumenters: { isparta : require('isparta') },
|
||||||
|
instrumenter: {
|
||||||
|
'lib/**/!(*spec).js': 'isparta'
|
||||||
|
},
|
||||||
|
dir: 'coverage/',
|
||||||
|
reporters: [
|
||||||
|
{type: 'html'},
|
||||||
|
{type: 'text-summary'},
|
||||||
|
{type: 'lcov'}
|
||||||
|
]
|
||||||
|
},
|
||||||
client: {
|
client: {
|
||||||
chai: {
|
chai: {
|
||||||
truncateThreshold: 0
|
truncateThreshold: 0
|
||||||
|
@ -27,7 +57,7 @@ module.exports = function (config) {
|
||||||
'/jspm_packages/': '/base/jspm_packages/',
|
'/jspm_packages/': '/base/jspm_packages/',
|
||||||
'/node_modules/': '/base/node_modules/',
|
'/node_modules/': '/base/node_modules/',
|
||||||
},
|
},
|
||||||
reporters: ['mocha'],
|
reporters: travis ? ['mocha', 'coverage', 'coveralls'] : ['mocha', 'coverage'],
|
||||||
|
|
||||||
browsers: ['PhantomJS'],
|
browsers: ['PhantomJS'],
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel": "^6.3.13",
|
"babel": "^5.8.34",
|
||||||
"babel-eslint": "^4.1.3",
|
"babel-eslint": "^4.1.3",
|
||||||
"babel-polyfill": "^6.3.14",
|
"babel-polyfill": "^6.3.14",
|
||||||
"browser-sync": "^2.9.8",
|
"browser-sync": "^2.9.8",
|
||||||
|
@ -64,11 +64,15 @@
|
||||||
"gulp-replace": "^0.5.4",
|
"gulp-replace": "^0.5.4",
|
||||||
"gulp-sass": "^2.1.0",
|
"gulp-sass": "^2.1.0",
|
||||||
"gulp-sourcemaps": "^1.6.0",
|
"gulp-sourcemaps": "^1.6.0",
|
||||||
|
"isparta": "^4.0.0",
|
||||||
|
"istanbul": "github:gotwarlost/istanbul#source-map",
|
||||||
"jshint-stylish": "^2.0.1",
|
"jshint-stylish": "^2.0.1",
|
||||||
"jspm": "^0.16.11",
|
"jspm": "^0.16.11",
|
||||||
"karma": "^0.13.15",
|
"karma": "^0.13.15",
|
||||||
|
"karma-babel-preprocessor": "^5.2.2",
|
||||||
"karma-chai": "github:randing89/karma-chai",
|
"karma-chai": "github:randing89/karma-chai",
|
||||||
"karma-chrome-launcher": "^0.2.2",
|
"karma-chrome-launcher": "^0.2.2",
|
||||||
|
"karma-coverage": "github:douglasduteil/karma-coverage#next",
|
||||||
"karma-jspm": "^2.0.2",
|
"karma-jspm": "^2.0.2",
|
||||||
"karma-mocha": "^0.2.1",
|
"karma-mocha": "^0.2.1",
|
||||||
"karma-mocha-reporter": "^1.1.3",
|
"karma-mocha-reporter": "^1.1.3",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user