2018-12-27 09:29:46 -06:00
|
|
|
# Jobs to build the two channels in Socializer.
|
2019-11-26 09:26:27 -06:00
|
|
|
# Currently using python 3.7.5
|
2019-01-01 20:56:12 -06:00
|
|
|
variables:
|
2019-11-25 13:52:51 -06:00
|
|
|
PYTHON3-32: "C:\\python37-32\\python.exe"
|
2019-11-26 09:52:13 -06:00
|
|
|
PYTHON3-64: "C:\\python37-64\\python.exe"
|
2019-11-25 14:04:44 -06:00
|
|
|
PYINSTALLER: "C:\\python37-32\\scripts\\pyinstaller.exe"
|
2019-01-17 16:22:49 -06:00
|
|
|
NSIS: "C:\\nsis\\makensis.exe"
|
2019-01-01 20:56:12 -06:00
|
|
|
|
2019-12-10 09:56:40 -06:00
|
|
|
.configure_environment: &configure_environment
|
2019-01-02 10:06:19 -06:00
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
before_script:
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% -V'
|
2019-11-25 12:03:26 -06:00
|
|
|
- '%PYTHON3-32% -m pip install --upgrade pip'
|
|
|
|
- '%PYTHON3-32% -m pip install --upgrade -r requirements.txt'
|
2019-12-10 09:56:40 -06:00
|
|
|
- '%PYTHON3-32% -m pip uninstall enum34 -y'
|
|
|
|
|
2019-11-26 09:26:27 -06:00
|
|
|
# Create documentation in all available languages so we'll have it at http://socializer.su/documentation
|
|
|
|
# this job is triggered on every commit to master, so we always will display the latest available version of the documentation in the website.
|
2019-05-07 10:29:15 -05:00
|
|
|
documentation:
|
2019-12-10 09:56:40 -06:00
|
|
|
<<: *configure_environment
|
2019-05-07 10:29:15 -05:00
|
|
|
type: deploy
|
|
|
|
script:
|
|
|
|
- copy changelog.md doc\changelog.md
|
|
|
|
- cd doc
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% documentation_importer.py'
|
2019-05-07 10:29:15 -05:00
|
|
|
- cd ..\src
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% ..\doc\generator.py'
|
2019-05-07 10:37:31 -05:00
|
|
|
- 'move documentation ..\'
|
2019-12-10 10:41:52 -06:00
|
|
|
- cd ..\scripts
|
|
|
|
- call genpot_interface.bat
|
|
|
|
- call genpot_doc.bat
|
|
|
|
- cd ..
|
|
|
|
- move scripts\socializer.pot socializer.pot
|
|
|
|
- move scripts\socializer-documentation.pot socializer-documentation.pot
|
2019-05-07 10:29:15 -05:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- documentation
|
|
|
|
name: socializer_documentation
|
2019-11-26 09:26:27 -06:00
|
|
|
expire_in: 90 days
|
2019-05-07 10:29:15 -05:00
|
|
|
|
2019-11-26 09:30:56 -06:00
|
|
|
alpha32:
|
2019-12-10 09:56:40 -06:00
|
|
|
<<: *configure_environment
|
2019-11-19 17:41:29 -06:00
|
|
|
type: deploy
|
|
|
|
script:
|
|
|
|
- copy changelog.md doc\changelog.md
|
|
|
|
- cd doc
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% documentation_importer.py'
|
2019-11-19 17:41:29 -06:00
|
|
|
- cd ..\src
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% ..\doc\generator.py'
|
2019-11-25 12:03:26 -06:00
|
|
|
- '%PYTHON3-32% write_version_data.py'
|
|
|
|
- '%PYTHON3-32% setup.py build'
|
2019-12-10 10:43:55 -06:00
|
|
|
- '%NSIS% installer_alpha.nsi'
|
2019-11-19 17:41:29 -06:00
|
|
|
- cd ..
|
2019-12-10 10:41:52 -06:00
|
|
|
- move src\socializer* .
|
2019-12-10 10:49:26 -06:00
|
|
|
- cd scripts
|
2019-12-03 10:34:34 -06:00
|
|
|
- '%PYTHON3-32% prepare_zipversion.py'
|
2019-11-19 17:41:29 -06:00
|
|
|
- cd ..
|
2019-12-12 10:32:11 -06:00
|
|
|
- move src\socializer.zip socializer_x86_alpha.zip
|
2019-12-11 10:54:13 -06:00
|
|
|
- '%PYTHON3-32% scripts/generate_update_file.py'
|
2019-12-11 11:13:52 -06:00
|
|
|
- '%PYTHON3-32% scripts/upload.py'
|
2019-12-12 10:32:11 -06:00
|
|
|
- move socializer_x86_alpha.zip socializer_x86.zip
|
2019-11-19 17:41:29 -06:00
|
|
|
only:
|
|
|
|
- schedules
|
2019-12-10 10:41:52 -06:00
|
|
|
- master
|
2019-12-10 20:09:02 -06:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- socializer_x86.zip
|
|
|
|
name: socializer_alpha
|
|
|
|
expire_in: 1 day
|
2019-11-19 17:41:29 -06:00
|
|
|
|
2019-11-26 12:03:23 -06:00
|
|
|
### This is commented because there is no 64 bits version of enchant, thus pyenchant will not work.
|
|
|
|
### I will reenable this when we will get rid of enchant, probably in favour of symspellpy
|
2019-11-26 09:30:56 -06:00
|
|
|
# Creates a version built with Python 3.7 and cx-freeze
|
|
|
|
# this is going to be the current alpha version after november 27.
|
2019-12-04 17:45:42 -06:00
|
|
|
.alpha64:
|
2019-11-26 09:30:56 -06:00
|
|
|
type: deploy
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
before_script:
|
|
|
|
- '%PYTHON3-64% -V'
|
|
|
|
- '%PYTHON3-64% -m pip install --upgrade pip cx_freeze'
|
|
|
|
- '%PYTHON3-64% -m pip install --upgrade -r requirements.txt'
|
|
|
|
- '%PYTHON3-64% -m pip uninstall enum34 -y'
|
|
|
|
script:
|
|
|
|
- copy changelog.md doc\changelog.md
|
|
|
|
- cd doc
|
|
|
|
- '%PYTHON3-64% documentation_importer.py'
|
|
|
|
- cd ..\src
|
|
|
|
- '%PYTHON3-64% ..\doc\generator.py'
|
|
|
|
- '%PYTHON3-64% write_version_data.py'
|
|
|
|
- '%PYTHON3-64% setup.py build'
|
|
|
|
- cd ..
|
|
|
|
- cd scripts
|
2019-12-03 10:34:34 -06:00
|
|
|
- '%PYTHON3-64% prepare_zipversion.py'
|
2019-11-26 09:30:56 -06:00
|
|
|
- call genpot_interface.bat
|
|
|
|
- call genpot_doc.bat
|
|
|
|
- cd ..
|
|
|
|
- move src\socializer.zip socializer_x64.zip
|
|
|
|
- move scripts\socializer.pot socializer.pot
|
|
|
|
- move scripts\socializer-documentation.pot socializer-documentation.pot
|
|
|
|
only:
|
|
|
|
- schedules
|
2019-12-10 10:41:52 -06:00
|
|
|
- master
|
2019-11-26 09:30:56 -06:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- socializer_x64.zip
|
|
|
|
- socializer.pot
|
|
|
|
- socializer-documentation.pot
|
2019-12-10 10:41:52 -06:00
|
|
|
- '%PYTHON3-32% scripts/upload.py'
|
2019-11-26 09:30:56 -06:00
|
|
|
|
2019-11-26 09:26:27 -06:00
|
|
|
# Generates a new stable version of the application every tag.
|
2018-12-27 09:29:46 -06:00
|
|
|
stable:
|
2019-12-10 09:56:40 -06:00
|
|
|
<<: *configure_environment
|
2018-12-16 07:23:45 -06:00
|
|
|
type: deploy
|
|
|
|
script:
|
2018-12-19 04:47:48 -06:00
|
|
|
- copy changelog.md doc\changelog.md
|
2018-12-18 17:42:56 -06:00
|
|
|
- cd doc
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% documentation_importer.py'
|
2018-12-18 17:42:56 -06:00
|
|
|
- cd ..\src
|
2019-11-26 09:26:27 -06:00
|
|
|
- '%PYTHON3-32% ..\doc\generator.py'
|
2019-11-25 12:03:26 -06:00
|
|
|
- '%PYTHON3-32% write_version_data.py'
|
|
|
|
- '%PYTHON3-32% setup.py build'
|
2019-01-17 16:34:44 -06:00
|
|
|
- '%NSIS% installer.nsi'
|
2018-12-16 17:30:50 -06:00
|
|
|
- cd ..
|
2019-01-17 16:34:44 -06:00
|
|
|
- move src\socializer* .
|
2018-12-18 03:53:38 -06:00
|
|
|
- cd scripts
|
2019-11-25 12:03:26 -06:00
|
|
|
- '%PYTHON3-32% prepare_zipversion_cxfreeze.py'
|
2018-12-18 03:53:38 -06:00
|
|
|
- cd ..
|
|
|
|
- move src\socializer.zip socializer.zip
|
2019-11-25 12:03:26 -06:00
|
|
|
- '%PYTHON3-32% scripts/upload.py'
|
2018-12-17 01:03:25 -06:00
|
|
|
only:
|
2019-11-25 10:59:03 -06:00
|
|
|
- tags
|