mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
travis update
This commit is contained in:
parent
3725882945
commit
27d5bcb129
@ -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:
|
||||||
|
16
gulpfile.ts
16
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' +
|
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');
|
||||||
for (let i = 0; i < languages.length; i++) {
|
if (!process.env.CI) { // don't build languages if running in CI
|
||||||
createFrontendTask('build-frontend ' + languages[i], cmd +
|
for (let i = 0; i < languages.length; i++) {
|
||||||
'--output-path=./dist/' + languages[i] +
|
createFrontendTask('build-frontend ' + languages[i], cmd +
|
||||||
' --no-progress --i18n-locale ' + languages[i] +
|
'--output-path=./dist/' + languages[i] +
|
||||||
' --i18n-format=xlf --i18n-file=frontend/' + translationFolder +
|
' --no-progress --i18n-locale ' + languages[i] +
|
||||||
'/messages.' + languages[i] + '.xlf' + ' --i18n-missing-translation warning');
|
' --i18n-format=xlf --i18n-file=frontend/' + translationFolder +
|
||||||
tasks.push('build-frontend ' + languages[i]);
|
'/messages.' + languages[i] + '.xlf' + ' --i18n-missing-translation warning');
|
||||||
|
tasks.push('build-frontend ' + languages[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return gulp.series(...tasks);
|
return gulp.series(...tasks);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user