Update travis setup, run linter on travis
This commit is contained in:
1 parent
bec3f4027a
commit
a90520583c
3 files changed
+13
-4
No files matched your search
@@ -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
@@ -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
@@ -16,8 +16,8 @@
|
||||
"typescript": "^2.6.2"
|
||||
},
|
||||
"scripts": {
|
||||
"gulp": "gulp",
|
||||
"test": "gulp test"
|
||||
"test": "gulp test",
|
||||
"lint": "gulp lint"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in new issue
Block a user