| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,38 @@ | |||
| 1 | + env: | ||
| 2 | + browser: true | ||
| 3 | + commonjs: true | ||
| 4 | + node: true | ||
| 5 | + extends: 'eslint:recommended' | ||
| 6 | + globals: | ||
| 7 | + afterEach: false | ||
| 8 | + beforeEach: false | ||
| 9 | + define: false | ||
| 10 | + describe: false | ||
| 11 | + expect: false | ||
| 12 | + it: false | ||
| 13 | + jasmine: false | ||
| 14 | + ES6Promise: false | ||
| 15 | + Promise: false | ||
| 16 | + SourceMap: false | ||
| 17 | + StackFrame: false | ||
| 18 | + StackTrace: false | ||
| 19 | + StackTraceGPS: false | ||
| 20 | + parserOptions: | ||
| 21 | + ecmaVersion: 5 | ||
| 22 | + rules: | ||
| 23 | + indent: | ||
| 24 | + - error | ||
| 25 | + - 4 | ||
| 26 | + linebreak-style: | ||
| 27 | + - error | ||
| 28 | + - unix | ||
| 29 | + quotes: | ||
| 30 | + - error | ||
| 31 | + - single | ||
| 32 | + semi: | ||
| 33 | + - error | ||
| 34 | + - always | ||
| 35 | + no-console: | ||
| 36 | + - error | ||
| 37 | + - allow: | ||
| 38 | + - error | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,9 +14,9 @@ addons: | |||
| 14 | 14 | services: | |
| 15 | 15 | - xvfb | |
| 16 | 16 | before_install: | |
| 17 | - - export CHROME_BIN=chromium-browser | ||
| 18 | - - export DISPLAY=:99.0 | ||
| 17 | + - export CHROME_BIN=chromium-browser | ||
| 18 | + - export DISPLAY=:99.0 | ||
| 19 | 19 | before_script: | |
| 20 | - - npm install | ||
| 20 | + - npm install | ||
| 21 | 21 | script: | |
| 22 | - - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then gulp ci; else gulp pr; fi | ||
| 22 | + - if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run lint && npm run test-ci; else npm run test-pr; fi | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,7 @@ | |||
| 1 | 1 | var browserify = require('browserify'); | |
| 2 | 2 | var concat = require('gulp-concat'); | |
| 3 | - var coveralls = require('gulp-coveralls'); | ||
| 4 | 3 | var del = require('del'); | |
| 5 | 4 | var gulp = require('gulp'); | |
| 6 | - var jshint = require('gulp-jshint'); | ||
| 7 | - var karma = require('karma'); | ||
| 8 | - var path = require('path'); | ||
| 9 | 5 | var rename = require('gulp-rename'); | |
| 10 | 6 | var runSequence = require('run-sequence'); | |
| 11 | 7 | var sourcemaps = require('gulp-sourcemaps'); | |
@@ -20,37 +16,6 @@ var polyfills = [ | |||
| 20 | 16 | ]; | |
| 21 | 17 | var sources = 'stacktrace.js'; | |
| 22 | 18 | ||
| 23 | - gulp.task('lint', function() { | ||
| 24 | - return gulp.src(sources) | ||
| 25 | - .pipe(jshint()) | ||
| 26 | - .pipe(jshint.reporter('default')) | ||
| 27 | - .pipe(jshint.reporter('fail')); | ||
| 28 | - }); | ||
| 29 | - | ||
| 30 | - gulp.task('test', function(done) { | ||
| 31 | - var server = new karma.Server({ | ||
| 32 | - configFile: __dirname + '/karma.conf.js', | ||
| 33 | - singleRun: true | ||
| 34 | - }, done); | ||
| 35 | - server.start(); | ||
| 36 | - }); | ||
| 37 | - | ||
| 38 | - gulp.task('test-pr', ['dist'], function(done) { | ||
| 39 | - new karma.Server({ | ||
| 40 | - configFile: __dirname + '/karma.conf.js', | ||
| 41 | - browsers: ['Firefox', 'Chrome_Travis'], | ||
| 42 | - singleRun: true | ||
| 43 | - }, done).start(); | ||
| 44 | - }); | ||
| 45 | - | ||
| 46 | - gulp.task('test-ci', ['dist'], function(done) { | ||
| 47 | - var server = new karma.Server({ | ||
| 48 | - configFile: __dirname + '/karma.conf.ci.js', | ||
| 49 | - singleRun: true | ||
| 50 | - }, done); | ||
| 51 | - server.start(); | ||
| 52 | - }); | ||
| 53 | - | ||
| 54 | 19 | gulp.task('dist', function() { | |
| 55 | 20 | browserify({ | |
| 56 | 21 | entries: sources, | |
@@ -82,18 +47,8 @@ gulp.task('dist', function() { | |||
| 82 | 47 | .pipe(gulp.dest('dist')); | |
| 83 | 48 | }); | |
| 84 | 49 | ||
| 85 | - gulp.task('clean', del.bind(null, ['build', 'coverage', 'dist'])); | ||
| 86 | - | ||
| 87 | - gulp.task('pr', ['lint', 'test-pr'], function() { | ||
| 88 | - gulp.src('./coverage/**/lcov.info') | ||
| 89 | - .pipe(coveralls()); | ||
| 90 | - }); | ||
| 91 | - | ||
| 92 | - gulp.task('ci', ['lint', 'test-ci'], function() { | ||
| 93 | - gulp.src('./coverage/**/lcov.info') | ||
| 94 | - .pipe(coveralls()); | ||
| 95 | - }); | ||
| 50 | + gulp.task('clean', del.bind(null, ['build', 'dist'])); | ||
| 96 | 51 | ||
| 97 | 52 | gulp.task('default', ['clean'], function(cb) { | |
| 98 | - runSequence('lint', 'dist', 'test', cb); | ||
| 53 | + runSequence('dist', 'test', cb); | ||
| 99 | 54 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments