diff --git a/.travis.yml b/.travis.yml index de426e3..60b1a0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/gulpfile.js b/gulpfile.js index bec17f1..17e2bd7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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']) diff --git a/package.json b/package.json index e20169f..fd92725 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "typescript": "^2.6.2" }, "scripts": { - "gulp": "gulp", - "test": "gulp test" + "test": "gulp test", + "lint": "gulp lint" }, "repository": { "type": "git",