diff options
author | Vijay Vasudevan <vrv@google.com> | 2015-11-18 10:47:35 -0800 |
---|---|---|
committer | Vijay Vasudevan <vrv@google.com> | 2015-11-18 10:47:35 -0800 |
commit | ab34d55ce7618e52069a2e1c9e51aac5a1ea81c3 (patch) | |
tree | 9c79427b45ff6501e8374ceb7b4fc3bdb2828e15 /tensorflow/tensorboard/gulpfile.js | |
parent | 9eb88d56ab6a9a361662d73a258593d8fbf10b62 (diff) |
TensorFlow: more features, performance improvements, and doc fixes.
Changes:
- Add Split/Concat() methods to TensorUtil (meant for convenience, not
speed) by Chris.
- Changes to linear algebra ops interface by Rasmus
- Tests for tensorboard by Daniel
- Fix bug in histogram calculation by Cassandra
- Added tool for backwards compatibility of OpDefs. Tool
Checks in history of opdefs and their changes, checks for
backwards-incompatible changes. All done by @josh11b
- Fix some protobuf example proto docs by Oliver
- Add derivative of MatrixDeterminant by @yaroslavvb
- Add a priority queue queue by @ebrevdo
- Doc and typo fixes by Aurelien and @dave-andersen
- Speed improvements to ConvBackwardFilter by @andydavis
- Improve speed of Alexnet on TitanX by @zheng-xq
- Add some host memory annotations to some GPU kernels by Yuan.
- Add support for doubles in histogram summary by @jmchen-g
Base CL: 108158338
Diffstat (limited to 'tensorflow/tensorboard/gulpfile.js')
-rw-r--r-- | tensorflow/tensorboard/gulpfile.js | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/tensorflow/tensorboard/gulpfile.js b/tensorflow/tensorboard/gulpfile.js index 34b567d62a..60186f88ef 100644 --- a/tensorflow/tensorboard/gulpfile.js +++ b/tensorflow/tensorboard/gulpfile.js @@ -1,10 +1,10 @@ // Based on the gulpfile provided by angular team // (https://github.com/angular/ts2dart/blob/master/gulpfile.js) var gulp = require('gulp'); +var tester = require('web-component-tester').test; var ts = require('gulp-typescript'); var typescript = require('typescript'); var gutil = require('gulp-util'); -var mochaPhantomJS = require('gulp-mocha-phantomjs'); var tslint = require('gulp-tslint'); var server = require('gulp-server-livereload'); var concat = require('gulp-concat'); @@ -39,9 +39,8 @@ var onError = function(err) { gulp.task('compile.all', function() { hasError = false; - var isComponent = gulpFilter(['components/**/*.js', '!components/**/test/*']); + var isComponent = gulpFilter(['components/**/*.js']); var isApp = gulpFilter(['app/**/*.js']); - var isTest = gulpFilter(['test/**/*', 'components/**/test/*']); var srcs = ['components/**/*.ts', 'test/**/*.ts', 'app/**/*.ts', 'typings/**/*.d.ts', 'bower_components/**/*.d.ts']; @@ -66,12 +65,6 @@ gulp.task('compile.all', function() { .pipe(isApp) .pipe(gulp.dest('.')), - // Send all test code to build/test.js - tsResult.js - .pipe(isTest) - .pipe(concat('test.js')) - .pipe(gulp.dest('build')), - // Create a unified defintions file at build/all.d.ts tsResult.dts .pipe(concat('all.d.ts')) @@ -79,6 +72,17 @@ gulp.task('compile.all', function() { ]); }); +gulp.task('test', ['tslint-strict', 'compile.all'], function(done) { + tester({plugins: {local: {}, sauce: false}}, function(error) { + if (error) { + // Pretty error for gulp. + error = new Error(error.message || error); + error.showStack = false; + } + done(error); + }); +}); + var tslintTask = function(strict) { return function(done) { if (hasError) { @@ -100,23 +104,12 @@ var tslintTask = function(strict) { gulp.task('tslint-permissive', [], tslintTask(false)); gulp.task('tslint-strict', [], tslintTask(true)); - -gulp.task('run-tests', ['compile.all'], function(done) { - if (hasError) { - done(); - return; - } - return gulp.src('tests.html') - .pipe(mochaPhantomJS({reporter: 'dot'})); -}); - -gulp.task('test', ['run-tests', 'tslint-strict']); -gulp.task('watch', ['run-tests', 'tslint-permissive'], function() { +gulp.task('watch', ['compile.all', 'tslint-permissive'], function() { failOnError = false; // Avoid watching generated .d.ts in the build (aka output) directory. return gulp.watch(['test/**/*.ts', 'components/**/*.ts'], {ignoreInitial: true}, - ['run-tests', 'tslint-permissive']); + ['compile.all', 'tslint-permissive']); }); gulp.task('server', function() { |