Updated CI configuration for Socializer
This commit is contained in:
parent
fe577d75b4
commit
1468428689
@ -5,6 +5,7 @@ variables:
|
|||||||
PYTHON3_64: "C:\\python37-64\\python.exe"
|
PYTHON3_64: "C:\\python37-64\\python.exe"
|
||||||
NSIS: "C:\\nsis\\makensis.exe"
|
NSIS: "C:\\nsis\\makensis.exe"
|
||||||
|
|
||||||
|
# This configures the environment for both channels
|
||||||
.configure_environment: &configure_environment
|
.configure_environment: &configure_environment
|
||||||
tags:
|
tags:
|
||||||
- windows10
|
- windows10
|
||||||
@ -22,31 +23,24 @@ documentation:
|
|||||||
- windows10
|
- windows10
|
||||||
script:
|
script:
|
||||||
### Dependencies.
|
### Dependencies.
|
||||||
- '&$env:PYTHON3_32 -m pip install --upgrade babel markdown'
|
- '&$env:PYTHON3_32 -m pip install --upgrade markdown'
|
||||||
# generate all html documents first.
|
# generate all html documents.
|
||||||
- copy changelog.md doc\changelog.md
|
- copy changelog.md doc\changelog.md
|
||||||
- cd doc
|
- cd doc
|
||||||
- '&$env:PYTHON3_32 documentation_importer.py'
|
- '&$env:PYTHON3_32 documentation_importer.py'
|
||||||
- cd ..\src
|
- cd ..\src
|
||||||
- '&$env:PYTHON3_32 ..\doc\generator.py'
|
- '&$env:PYTHON3_32 ..\doc\generator.py'
|
||||||
- 'move documentation ..\'
|
- 'move documentation ..\'
|
||||||
# Update interface and documentation translation catalogs.
|
|
||||||
- '&$env:PYTHON3_32 setup.py extract_messages -F babel.cfg --input-dirs . --output-file socializer.pot'
|
|
||||||
- '&$env:PYTHON3_32 setup.py update_catalog --no-fuzzy-matching --domain socializer --output-dir locales --input-file socializer.pot'
|
|
||||||
- cd ..\doc
|
|
||||||
- '&$env:PYTHON3_32 translate.py'
|
|
||||||
- cd ..\src
|
|
||||||
- 'move locales ..\'
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- documentation
|
- documentation
|
||||||
- locales
|
|
||||||
name: socializer_documentation
|
name: socializer_documentation
|
||||||
expire_in: 30 days
|
expire_in: 1 day
|
||||||
|
|
||||||
### Updates all translation templates for weblate
|
### Updates all translation templates for weblate
|
||||||
|
# this is also executed on every commit to master.
|
||||||
update_translation_templates:
|
update_translation_templates:
|
||||||
type: deploy
|
type: deploy
|
||||||
tags:
|
tags:
|
||||||
@ -62,6 +56,7 @@ update_translation_templates:
|
|||||||
- cd ..\doc
|
- cd ..\doc
|
||||||
- '&$env:PYTHON3_32 translate.py'
|
- '&$env:PYTHON3_32 translate.py'
|
||||||
- cd ..
|
- cd ..
|
||||||
|
# After generation, it's time to push all translation updates.
|
||||||
- 'git config user.name "Windows runner"'
|
- 'git config user.name "Windows runner"'
|
||||||
- 'git config user.email "manuel@manuelcortez.net"'
|
- 'git config user.email "manuel@manuelcortez.net"'
|
||||||
- 'git add scripts'
|
- 'git add scripts'
|
||||||
@ -76,23 +71,27 @@ alpha32:
|
|||||||
<<: *configure_environment
|
<<: *configure_environment
|
||||||
type: deploy
|
type: deploy
|
||||||
script:
|
script:
|
||||||
|
# Create html documentation firstly.
|
||||||
- copy changelog.md doc\changelog.md
|
- copy changelog.md doc\changelog.md
|
||||||
- cd doc
|
- cd doc
|
||||||
- '&$env:PYTHON3_32 documentation_importer.py'
|
- '&$env:PYTHON3_32 documentation_importer.py'
|
||||||
- cd ..\src
|
- cd ..\src
|
||||||
- '&$env:PYTHON3_32 ..\doc\generator.py'
|
- '&$env:PYTHON3_32 ..\doc\generator.py'
|
||||||
|
# Writes version info useful for alphas.
|
||||||
- '&$env:PYTHON3_32 write_version_data.py'
|
- '&$env:PYTHON3_32 write_version_data.py'
|
||||||
|
# build it all.
|
||||||
- '&$env:PYTHON3_32 setup.py build'
|
- '&$env:PYTHON3_32 setup.py build'
|
||||||
|
# Once built, makes the installer for for alpha.
|
||||||
- '&$env:NSIS installer_alpha.nsi'
|
- '&$env:NSIS installer_alpha.nsi'
|
||||||
- cd ..
|
- cd ..
|
||||||
- move src\socializer* .
|
- move src\socializer* .
|
||||||
- cd scripts
|
- cd scripts
|
||||||
|
# Zips the folder in order to create the portable socializer version.
|
||||||
- '&$env:PYTHON3_32 prepare_zipversion.py'
|
- '&$env:PYTHON3_32 prepare_zipversion.py'
|
||||||
- cd ..
|
- cd ..
|
||||||
- move src\socializer.zip socializer_x86_alpha.zip
|
- move src\socializer.zip socializer_x86_alpha.zip
|
||||||
- '&$env:PYTHON3_32 scripts/generate_update_file.py'
|
- '&$env:PYTHON3_32 scripts/generate_update_file.py'
|
||||||
- '&$env:PYTHON3_32 scripts/upload.py'
|
- '&$env:PYTHON3_32 scripts/upload.py'
|
||||||
- move socializer_x86_alpha.zip socializer_x86.zip
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user