2018-12-27 09:29:46 -06:00
|
|
|
# Jobs to build the two channels in Socializer.
|
2019-01-01 20:56:12 -06:00
|
|
|
variables:
|
|
|
|
PYTHON3: "C:\\python37\\python.exe"
|
|
|
|
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
|
|
|
|
PYTHON2: "C:\\python27\\python.exe"
|
2019-01-17 16:22:49 -06:00
|
|
|
NSIS: "C:\\nsis\\makensis.exe"
|
2019-01-01 20:56:12 -06:00
|
|
|
|
2019-01-17 16:47:40 -06:00
|
|
|
test_py3:
|
2019-01-02 10:06:19 -06:00
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
before_script:
|
|
|
|
- '%PYTHON3% -V'
|
|
|
|
- '%PYTHON3% -m pip install --upgrade pip'
|
|
|
|
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
|
2019-01-07 15:26:06 -06:00
|
|
|
only:
|
|
|
|
- schedules
|
2019-01-02 10:06:19 -06:00
|
|
|
script:
|
|
|
|
- cd src
|
|
|
|
- '%PYTHON3% -m coverage run run_tests.py'
|
|
|
|
- '%PYTHON3% -m coverage report --omit="test*"'
|
|
|
|
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
|
|
|
|
|
2019-05-07 10:29:15 -05:00
|
|
|
documentation:
|
|
|
|
type: deploy
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
before_script:
|
|
|
|
- '%PYTHON3% -v'
|
|
|
|
script:
|
|
|
|
- copy changelog.md doc\changelog.md
|
|
|
|
- cd doc
|
|
|
|
- '%PYTHON2% documentation_importer.py'
|
|
|
|
- cd ..\src
|
|
|
|
- '%PYTHON2% ..\doc\generator.py'
|
2019-05-07 10:37:31 -05:00
|
|
|
- 'move documentation ..\'
|
2019-05-07 10:29:15 -05:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- documentation
|
|
|
|
name: socializer_documentation
|
|
|
|
expire_in: 1 day
|
|
|
|
|
2019-01-17 16:47:40 -06:00
|
|
|
alpha_python3:
|
2019-01-01 20:56:12 -06:00
|
|
|
type: deploy
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
before_script:
|
|
|
|
- '%PYTHON3% -v'
|
2019-01-01 21:10:08 -06:00
|
|
|
- '%PYTHON3% -m pip install --upgrade pip'
|
2019-01-01 20:56:12 -06:00
|
|
|
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
|
2019-01-01 21:10:08 -06:00
|
|
|
- '%PYTHON3% -m pip uninstall enum34 -y'
|
2019-01-01 20:56:12 -06:00
|
|
|
script:
|
|
|
|
- copy changelog.md doc\changelog.md
|
|
|
|
- cd doc
|
|
|
|
- '%PYTHON2% documentation_importer.py'
|
|
|
|
- cd ..\src
|
|
|
|
- '%PYTHON2% ..\doc\generator.py'
|
|
|
|
- '%PYTHON3% write_version_data.py'
|
|
|
|
- '%PYINSTALLER% main.spec'
|
|
|
|
- cd ..
|
|
|
|
- cd scripts
|
|
|
|
- '%PYTHON3% prepare_zipversion.py'
|
2019-03-06 16:52:58 -06:00
|
|
|
- call genpot_interface.bat
|
|
|
|
- call genpot_doc.bat
|
2019-01-01 20:56:12 -06:00
|
|
|
- cd ..
|
|
|
|
- move src\socializer.zip socializer.zip
|
2019-03-06 16:28:27 -06:00
|
|
|
- move scripts\socializer.pot socializer.pot
|
|
|
|
- move scripts\socializer-documentation.pot socializer-documentation.pot
|
2019-01-01 20:56:12 -06:00
|
|
|
only:
|
2019-01-02 10:19:57 -06:00
|
|
|
- schedules
|
2019-01-01 20:56:12 -06:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-01-01 21:25:17 -06:00
|
|
|
- socializer.zip
|
2019-03-06 16:19:22 -06:00
|
|
|
- socializer.pot
|
|
|
|
- socializer-documentation.pot
|
2019-01-01 21:25:17 -06:00
|
|
|
name: socializer_py3
|
2019-01-02 10:19:57 -06:00
|
|
|
expire_in: 1 day
|
2019-01-01 20:56:12 -06:00
|
|
|
|
2019-11-19 17:41:29 -06:00
|
|
|
alpha:
|
|
|
|
type: deploy
|
|
|
|
tags:
|
|
|
|
- windows10
|
|
|
|
before_script:
|
|
|
|
- '%PYTHON3% -v'
|
|
|
|
- '%PYTHON3% -m pip install --upgrade pip cx_freeze'
|
|
|
|
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
|
|
|
|
- '%PYTHON3% -m pip uninstall enum34 -y'
|
|
|
|
script:
|
|
|
|
- copy changelog.md doc\changelog.md
|
|
|
|
- cd doc
|
|
|
|
- '%PYTHON2% documentation_importer.py'
|
|
|
|
- cd ..\src
|
|
|
|
- '%PYTHON2% ..\doc\generator.py'
|
|
|
|
- '%PYTHON3% write_version_data.py'
|
|
|
|
- '%PYTHON3% setup.py build'
|
|
|
|
- cd ..
|
|
|
|
- cd scripts
|
|
|
|
- '%PYTHON3% prepare_zipversion_cxfreeze.py'
|
|
|
|
- call genpot_interface.bat
|
|
|
|
- call genpot_doc.bat
|
|
|
|
- cd ..
|
|
|
|
- move src\socializer.zip socializer.zip
|
|
|
|
- move scripts\socializer.pot socializer.pot
|
|
|
|
- move scripts\socializer-documentation.pot socializer-documentation.pot
|
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- socializer.zip
|
|
|
|
- socializer.pot
|
|
|
|
- socializer-documentation.pot
|
|
|
|
name: socializer_alpha
|
|
|
|
expire_in: 1 day
|
|
|
|
|
2018-12-27 09:29:46 -06:00
|
|
|
stable:
|
2018-12-16 07:23:45 -06:00
|
|
|
type: deploy
|
2018-12-18 03:55:24 -06:00
|
|
|
tags:
|
|
|
|
- windows
|
2019-01-17 16:34:44 -06:00
|
|
|
before_script:
|
|
|
|
- '%PYTHON3% -v'
|
|
|
|
- '%PYTHON3% -m pip install --upgrade pip'
|
|
|
|
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
|
|
|
|
- '%PYTHON3% -m pip uninstall enum34 -y'
|
2018-12-16 07:23:45 -06:00
|
|
|
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-01-17 16:34:44 -06:00
|
|
|
- '%PYTHON2% documentation_importer.py'
|
2018-12-18 17:42:56 -06:00
|
|
|
- cd ..\src
|
2019-01-17 16:34:44 -06:00
|
|
|
- '%PYTHON2% ..\doc\generator.py'
|
|
|
|
- '%PYTHON3% write_version_data.py'
|
|
|
|
- '%PYINSTALLER% main.spec'
|
|
|
|
- '%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-01-17 16:34:44 -06:00
|
|
|
- '%PYTHON3% prepare_zipversion.py'
|
2018-12-18 03:53:38 -06:00
|
|
|
- cd ..
|
|
|
|
- move src\socializer.zip socializer.zip
|
2018-12-17 01:03:25 -06:00
|
|
|
only:
|
2019-01-17 16:47:40 -06:00
|
|
|
- tags
|
2018-12-16 17:30:50 -06:00
|
|
|
artifacts:
|
2018-12-17 00:09:39 -06:00
|
|
|
paths:
|
2018-12-18 03:53:38 -06:00
|
|
|
- socializer.zip
|
2019-01-17 16:34:44 -06:00
|
|
|
- "socializer_*"
|
2019-01-17 16:47:40 -06:00
|
|
|
name: socializer
|