1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

travis update

This commit is contained in:
Patrik J. Braun 2019-01-27 14:53:46 -05:00
parent 3725882945
commit 27d5bcb129
2 changed files with 10 additions and 8 deletions

View File

@ -4,7 +4,7 @@ node_js:
- '10' - '10'
- '11' - '11'
env: 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: services:
- mysql - mysql
addons: addons:

View File

@ -113,6 +113,7 @@ const simpleBuild = (isProd: boolean) => {
createFrontendTask('build-frontend default', cmd + '--output-path=./dist --no-progress --no-progress --i18n-locale en' + 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'); ' --i18n-format=xlf --i18n-file=frontend/' + translationFolder + '/messages.en.xlf' + ' --i18n-missing-translation warning');
tasks.push('build-frontend default'); tasks.push('build-frontend default');
if (!process.env.CI) { // don't build languages if running in CI
for (let i = 0; i < languages.length; i++) { for (let i = 0; i < languages.length; i++) {
createFrontendTask('build-frontend ' + languages[i], cmd + createFrontendTask('build-frontend ' + languages[i], cmd +
'--output-path=./dist/' + languages[i] + '--output-path=./dist/' + languages[i] +
@ -121,6 +122,7 @@ const simpleBuild = (isProd: boolean) => {
'/messages.' + languages[i] + '.xlf' + ' --i18n-missing-translation warning'); '/messages.' + languages[i] + '.xlf' + ' --i18n-missing-translation warning');
tasks.push('build-frontend ' + languages[i]); tasks.push('build-frontend ' + languages[i]);
} }
}
return gulp.series(...tasks); return gulp.series(...tasks);
}; };