Added files for travis build.

10.3.x-maintenance
Michael Keller 2017-11-14 16:00:02 +13:00
parent 94cc79fff1
commit 4064a02dbb
2 changed files with 15 additions and 7 deletions

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: node_js
before_install:
- npm install gulp -g
script:
- npm install
- gulp release
cache:
directories:
- node_modules

View File

@ -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 // Real work for dist task. Done in another task to call it via
// run-sequence. // run-sequence.
gulp.task('dist-build', [], function () { gulp.task('dist', ['clean'], function () {
var distSources = [ var distSources = [
// CSS files // CSS files
'./main.css', './main.css',
@ -154,10 +154,6 @@ gulp.task('dist-build', [], function () {
.pipe(gulp.dest(distDir)); .pipe(gulp.dest(distDir));
}); });
gulp.task('dist', function () {
return runSequence('clean', 'dist-build');
});
// Create app directories in ./apps // Create app directories in ./apps
gulp.task('apps', ['dist'], function (done) { gulp.task('apps', ['dist'], function (done) {
var builder = new NwBuilder({ var builder = new NwBuilder({
@ -256,8 +252,8 @@ gulp.task('release-macos', function () {
}); });
// Create distributable .zip files in ./apps // Create distributable .zip files in ./apps
gulp.task('release', function () { gulp.task('release', ['apps'], function () {
return runSequence('apps', 'release-macos', 'release-windows', 'release-linux'); return runSequence('release-macos', 'release-windows', 'release-linux');
}); });
gulp.task('default', ['apps']); gulp.task('default', ['apps']);