finetune some paths

This commit is contained in:
Philipp Kunz 2016-02-09 16:00:07 +01:00
parent 3e673e04b2
commit e20bcec133
6 changed files with 8 additions and 8 deletions

View File

@ -202,13 +202,13 @@ var NpmtsTests;
.pipe(plugins.g.istanbul.hookRequire()); .pipe(plugins.g.istanbul.hookRequire());
}); });
plugins.gulp.task('mocha', function () { plugins.gulp.task('mocha', function () {
return plugins.gulp.src(['test/test.js']) return plugins.gulp.src(["./test/test.js"])
.pipe(plugins.g.mocha()) .pipe(plugins.g.mocha())
.pipe(plugins.g.istanbul.writeReports()) .pipe(plugins.g.istanbul.writeReports())
.pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 30 } })); .pipe(plugins.g.istanbul.enforceThresholds({ thresholds: { global: 30 } }));
}); });
plugins.gulp.task("coveralls", function () { plugins.gulp.task("coveralls", function () {
return plugins.gulp.src('coverage/**/lcov.info') return plugins.gulp.src("./coverage/**/lcov.info")
.pipe(plugins.g.if((process.env.TRAVIS && config.coveralls), plugins.g.coveralls())); .pipe(plugins.g.if((process.env.TRAVIS && config.coveralls), plugins.g.coveralls()));
}); });
plugins.gulp.task("test", function () { plugins.gulp.task("test", function () {

View File

@ -77,7 +77,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 06:01:01 GMT+0100 (CET) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 15:59:46 GMT+0100 (CET)
</div> </div>
</div> </div>
<script src="../prettify.js"></script> <script src="../prettify.js"></script>

View File

@ -76,7 +76,7 @@ module.exports = testplugin;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 06:01:01 GMT+0100 (CET) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 15:59:46 GMT+0100 (CET)
</div> </div>
</div> </div>
<script src="../prettify.js"></script> <script src="../prettify.js"></script>

View File

@ -77,7 +77,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 06:01:01 GMT+0100 (CET) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Feb 09 2016 15:59:46 GMT+0100 (CET)
</div> </div>
</div> </div>
<script src="prettify.js"></script> <script src="prettify.js"></script>

View File

@ -9,5 +9,5 @@
"./subts2/", "./subts2/",
"./customdir" "./customdir"
], ],
"coveralls":"false" "coveralls":true
} }

View File

@ -12,7 +12,7 @@ module NpmtsTests {
}); });
plugins.gulp.task('mocha', function () { plugins.gulp.task('mocha', function () {
return plugins.gulp.src(['test/test.js']) return plugins.gulp.src(["./test/test.js"])
.pipe(plugins.g.mocha()) .pipe(plugins.g.mocha())
// Creating the reports after tests ran // Creating the reports after tests ran
.pipe(plugins.g.istanbul.writeReports()) .pipe(plugins.g.istanbul.writeReports())
@ -21,7 +21,7 @@ module NpmtsTests {
}); });
plugins.gulp.task("coveralls",function(){ plugins.gulp.task("coveralls",function(){
return plugins.gulp.src('coverage/**/lcov.info') return plugins.gulp.src("./coverage/**/lcov.info")
.pipe(plugins.g.if( .pipe(plugins.g.if(
(process.env.TRAVIS && config.coveralls), (process.env.TRAVIS && config.coveralls),
plugins.g.coveralls() plugins.g.coveralls()