From 4064a02dbb275ed7dc5e907bc70160df0cf28016 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 14 Nov 2017 16:00:02 +1300 Subject: [PATCH] Added files for travis build. --- .travis.yml | 12 ++++++++++++ gulpfile.js | 10 +++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..470c1204 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: node_js + +before_install: + - npm install gulp -g + +script: + - npm install + - gulp release + +cache: + directories: + - node_modules diff --git a/gulpfile.js b/gulpfile.js index 80deb143..f8ea2310 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,7 +24,7 @@ gulp.task('clean', function () { return del(['./dist/**'], { force: true }); }); // Real work for dist task. Done in another task to call it via // run-sequence. -gulp.task('dist-build', [], function () { +gulp.task('dist', ['clean'], function () { var distSources = [ // CSS files './main.css', @@ -154,10 +154,6 @@ gulp.task('dist-build', [], function () { .pipe(gulp.dest(distDir)); }); -gulp.task('dist', function () { - return runSequence('clean', 'dist-build'); -}); - // Create app directories in ./apps gulp.task('apps', ['dist'], function (done) { var builder = new NwBuilder({ @@ -256,8 +252,8 @@ gulp.task('release-macos', function () { }); // Create distributable .zip files in ./apps -gulp.task('release', function () { - return runSequence('apps', 'release-macos', 'release-windows', 'release-linux'); +gulp.task('release', ['apps'], function () { + return runSequence('release-macos', 'release-windows', 'release-linux'); }); gulp.task('default', ['apps']);