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'
- '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:

View File

@ -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);
};