socializer/.gitlab-ci.yml

113 lines
2.7 KiB
YAML
Raw Normal View History

# 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
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 15:26:06 -06: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-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 install --upgrade pyenchant pypubsub'
- '%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'
- cd ..
- move src\socializer.zip socializer.zip
only:
- schedules
2019-01-01 20:56:12 -06:00
artifacts:
paths:
2019-01-01 21:25:17 -06:00
- socializer.zip
name: socializer_py3
expire_in: 1 day
2019-01-01 20:56:12 -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 install --upgrade pyenchant pypubsub'
- '%PYTHON3% -m pip uninstall enum34 -y'
2018-12-16 07:23:45 -06:00
script:
- 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
only:
- 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_*"
name: socializer