socializer/.gitlab-ci.yml

102 lines
2.4 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"
test_py3:
stage: test
tags:
- windows10
before_script:
- '%PYTHON3% -V'
- '%PYTHON3% -m pip install --upgrade pip'
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
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
2019-01-02 03:56:12 +01:00
alpha_python3:
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 install --upgrade pyenchant pypubsub'
- '%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'
- cd ..
- move src\socializer.zip socializer.zip
only:
- schedules
2019-01-02 03:56:12 +01:00
artifacts:
paths:
2019-01-02 04:25:17 +01:00
- socializer.zip
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
2018-12-16 14:23:45 +01:00
script:
2018-12-18 10:53:38 +01:00
- pip install --upgrade pip
2018-12-17 00:30:50 +01:00
- pip install --upgrade -r requirements.txt
- copy changelog.md doc\changelog.md
2018-12-19 00:42:56 +01:00
- cd doc
- python documentation_importer.py
- cd ..\src
- python ..\doc\generator.py
2018-12-17 00:30:50 +01:00
- python setup.py py2exe
- cd ..
2018-12-18 10:53:38 +01:00
- cd scripts
- python prepare_zipversion.py
- cd ..
- move src\socializer.zip socializer.zip
only:
2018-12-20 00:31:10 +01:00
- 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-01 12:36:29 +01:00
name: socializer