socializer/.gitlab-ci.yml

117 lines
2.8 KiB
YAML
Raw Normal View History

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