Skip to content

Commit b4077c1

Browse files
committed
Ensure we run linting for PRs.
1 parent 94bf102 commit b4077c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ before_install:
1717
before_script:
1818
- npm install
1919
script:
20-
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then gulp ci; else gulp test-pr; fi
20+
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then gulp ci; else gulp pr; fi

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ gulp.task('dist', function() {
5858
.pipe(concat(sources.replace('.js', '-with-promises-and-json-polyfills.js')))
5959
.pipe(gulp.dest('dist'))
6060
.pipe(uglify())
61-
.pipe(rename({extname:'.min.js'}))
61+
.pipe(rename({extname: '.min.js'}))
6262
.pipe(sourcemaps.write('./'))
6363
.pipe(gulp.dest('dist'));
6464

@@ -74,6 +74,11 @@ gulp.task('dist', function() {
7474

7575
gulp.task('clean', del.bind(null, ['build', 'coverage', 'dist']));
7676

77+
gulp.task('pr', ['lint', 'test-pr'], function() {
78+
gulp.src('./coverage/**/lcov.info')
79+
.pipe(coveralls());
80+
});
81+
7782
gulp.task('ci', ['lint', 'test-ci'], function() {
7883
gulp.src('./coverage/**/lcov.info')
7984
.pipe(coveralls());

0 commit comments

Comments
 (0)