-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
7 changed files
with
2,668 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
language: node_js | ||
node_js: | ||
- "8" | ||
|
||
before_install: | ||
# Do not modify. Required for GUI based tests: See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI | ||
- if [ $TRAVIS_OS_NAME == "linux" ]; then | ||
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0; | ||
sh -e /etc/init.d/xvfb start; | ||
sleep 3; | ||
fi | ||
|
||
install: | ||
- npm install -g --silent gulp-cli | ||
|
||
script: | ||
- npm install | ||
- npm run compile | ||
- gulp cover:enable | ||
- npm run test | ||
- gulp cover:publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
var gulp = require('gulp'); | ||
var path = require('path'); | ||
var runSequence = require('run-sequence'); | ||
var del = require('del'); | ||
var jeditor = require("gulp-json-editor"); | ||
var coveralls = require('gulp-coveralls'); | ||
|
||
gulp.task('clean', function(callback) { | ||
runSequence('cover:clean', 'out:clean', callback); | ||
}); | ||
|
||
gulp.task('cover:clean', function (done) { | ||
return del('coverage', done); | ||
}); | ||
|
||
gulp.task('cover:enable',() => { | ||
return gulp.src("./coverconfig.json") | ||
.pipe(jeditor(function(json) { | ||
json.enabled = true; | ||
return json; // must return JSON object. | ||
})) | ||
.pipe(gulp.dest("./", {'overwrite':true})); | ||
}); | ||
|
||
gulp.task('cover:disable', () => { | ||
return gulp.src("./coverconfig.json") | ||
.pipe(jeditor(function(json) { | ||
json.enabled = false; | ||
return json; // must return JSON object. | ||
})) | ||
.pipe(gulp.dest("./", {'overwrite':true})); | ||
}); | ||
|
||
gulp.task('cover:publish', function(callback) { | ||
return gulp.src('coverage/lcov.info') | ||
.pipe(coveralls()); | ||
}); | ||
|
||
gulp.task('out:clean', function(callback) { | ||
return del('out', callback); | ||
}); |
Oops, something went wrong.