Update travis setup, run linter on travis

This commit is contained in:
Slava Bacherikov committed 2018-01-10 03:18:35 +02:00
1 parent bec3f4027a
commit a90520583c
3 files changed
+13 -4

No files matched your search

+9
View File
@@ -6,6 +6,15 @@ node_js:
- "8"
- "node"
sudo: false
script:
- npm run test
- npm run lint
git:
depth: 1
submodules: false
cache:
directories:
- "node_modules"
+2 -2
View File
@@ -14,10 +14,10 @@ gulp.task('test', ['build'], function() {
return gulp.src("dist/*.spec.js").pipe(jasmine());
});
gulp.task('tslint', function() {
gulp.task('lint', function() {
return tsProject.src()
.pipe(tslint({"formatter": "verbose"}))
.pipe(tslint.report());
});
gulp.task('default', ['tslint', 'build', 'test'])
gulp.task('default', ['build', 'test', 'lint'])
+2 -2
View File
@@ -16,8 +16,8 @@
"typescript": "^2.6.2"
},
"scripts": {
"gulp": "gulp",
"test": "gulp test"
"test": "gulp test",
"lint": "gulp lint"
},
"repository": {
"type": "git",