socializer/.gitlab-ci.yml

104 lines
2.4 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-16 16:25:18 -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
2019-01-16 16:25:18 -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 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
2018-12-16 07:23:45 -06:00
script:
2018-12-18 03:53:38 -06:00
- pip install --upgrade pip
2018-12-16 17:30:50 -06:00
- pip install --upgrade -r requirements.txt
- copy changelog.md doc\changelog.md
2018-12-18 17:42:56 -06:00
- cd doc
- python documentation_importer.py
- cd ..\src
- python ..\doc\generator.py
2018-12-16 17:30:50 -06:00
- python setup.py py2exe
- cd ..
2018-12-18 03:53:38 -06:00
- cd scripts
- python prepare_zipversion.py
- cd ..
- move src\socializer.zip socializer.zip
only:
2018-12-19 17:31:10 -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-01 05:36:29 -06:00
name: socializer