From 27d5bcb12972cf8d4d64cef4ef6432dfffe09343 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 27 Jan 2019 14:53:46 -0500 Subject: [PATCH] travis update --- .travis.yml | 2 +- gulpfile.ts | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 057d7718..74e34625 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ node_js: - '10' - '11' env: - - Server-database-mysql-host='localhost' Server-database-mysql-username='root' rver-database-mysql-password='' Server-database-mysql-database='pigallery2_travis' + - "Server-database-mysql-host"='localhost' "Server-database-mysql-username"='root' "Server-database-mysql-password"='' "Server-database-mysql-database"='pigallery2_travis' services: - mysql addons: diff --git a/gulpfile.ts b/gulpfile.ts index 09e1d033..26398bf9 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -113,13 +113,15 @@ const simpleBuild = (isProd: boolean) => { createFrontendTask('build-frontend default', cmd + '--output-path=./dist --no-progress --no-progress --i18n-locale en' + ' --i18n-format=xlf --i18n-file=frontend/' + translationFolder + '/messages.en.xlf' + ' --i18n-missing-translation warning'); tasks.push('build-frontend default'); - for (let i = 0; i < languages.length; i++) { - createFrontendTask('build-frontend ' + languages[i], cmd + - '--output-path=./dist/' + languages[i] + - ' --no-progress --i18n-locale ' + languages[i] + - ' --i18n-format=xlf --i18n-file=frontend/' + translationFolder + - '/messages.' + languages[i] + '.xlf' + ' --i18n-missing-translation warning'); - tasks.push('build-frontend ' + languages[i]); + if (!process.env.CI) { // don't build languages if running in CI + for (let i = 0; i < languages.length; i++) { + createFrontendTask('build-frontend ' + languages[i], cmd + + '--output-path=./dist/' + languages[i] + + ' --no-progress --i18n-locale ' + languages[i] + + ' --i18n-format=xlf --i18n-file=frontend/' + translationFolder + + '/messages.' + languages[i] + '.xlf' + ' --i18n-missing-translation warning'); + tasks.push('build-frontend ' + languages[i]); + } } return gulp.series(...tasks); };