129 lines
4.5 KiB
YAML
129 lines
4.5 KiB
YAML
stages:
|
|
- generate_doc
|
|
- build
|
|
- generate_versions
|
|
- upload
|
|
|
|
pages:
|
|
image: python:latest
|
|
tags:
|
|
- docker
|
|
interruptible: true
|
|
only:
|
|
- master
|
|
stage: generate_doc
|
|
script:
|
|
- 'pip install --upgrade markdown babel'
|
|
- 'cp changelog.md doc/changelog.md'
|
|
- 'cd doc'
|
|
- 'python documentation_importer.py'
|
|
- 'python generator.py'
|
|
- 'mv -f documentation ../public'
|
|
artifacts:
|
|
expire_in: 1 day
|
|
paths:
|
|
- public
|
|
|
|
socializer64:
|
|
stage: build
|
|
interruptible: true
|
|
variables:
|
|
PYTHON: "C:\\python37\\python.exe"
|
|
tags:
|
|
- windows10
|
|
only:
|
|
- master
|
|
- tags
|
|
script:
|
|
- '&$env:PYTHON -V'
|
|
- '&$env:PYTHON -m venv env'
|
|
- 'env\Scripts\Activate.ps1'
|
|
- 'python -m pip install --upgrade pip'
|
|
- 'python -m pip install --upgrade -r requirements.txt'
|
|
- 'python -m pip uninstall enum34 -y'
|
|
- 'cd src'
|
|
- 'python write_version_data.py'
|
|
- 'python -m nuitka --mingw64 --standalone --enable-plugin=anti-bloat --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow --nofollow-import-to=numpy --nofollow-import-to=babel --nofollow-import-to=cx_freeze --nofollow-import-to=pil --include-data-file=../windows-dependencies/x64/oggenc2.exe=oggenc2.exe --include-data-file=../windows-dependencies/x64/bootstrap.exe=bootstrap.exe --include-data-file=app-configuration.defaults=app-configuration.defaults --include-data-dir=locales=locales --include-data-dir=../public=documentation --include-data-dir=sounds=sounds --include-data-file=session.defaults=session.defaults --windows-disable-console --windows-file-description="Accessible VK Client for Windows" --windows-product-version=2021.12.14.0 --windows-file-version=2021.12.14.0 --windows-product-name="Socializer" --windows-company-name="MCV Software" --python-flag=no_site --assume-yes-for-downloads --remove-output "socializer.py"'
|
|
- 'python ..\scripts\copy_missing_files.py'
|
|
- 'cd ..'
|
|
- 'mkdir artifacts'
|
|
- 'cd scripts'
|
|
- 'python prepare_zipversion.py'
|
|
- 'cd ..'
|
|
- 'move src\socializer.zip artifacts\socializer_x64.zip'
|
|
- 'mv src/socializer.dist artifacts/program64'
|
|
- 'move src/installer.nsi artifacts'
|
|
- 'python scripts/generate_update_file.py'
|
|
- 'move *.json artifacts'
|
|
artifacts:
|
|
expire_in: 1 day
|
|
paths:
|
|
- artifacts
|
|
|
|
socializer32:
|
|
stage: build
|
|
interruptible: true
|
|
variables:
|
|
PYTHON: "C:\\python37-32\\python.exe"
|
|
tags:
|
|
- windows10
|
|
only:
|
|
- master
|
|
- tags
|
|
script:
|
|
- '&$env:PYTHON -V'
|
|
- '&$env:PYTHON -m venv env'
|
|
- 'env\Scripts\Activate.ps1'
|
|
- 'python -m pip install --upgrade pip'
|
|
- 'python -m pip install --upgrade -r requirements.txt'
|
|
- 'python -m pip uninstall enum34 -y'
|
|
- 'cd src'
|
|
- 'python write_version_data.py'
|
|
- 'python -m nuitka --mingw64 --standalone --enable-plugin=anti-bloat --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow --nofollow-import-to=numpy --nofollow-import-to=babel --nofollow-import-to=cx_freeze --nofollow-import-to=pil --include-data-file=../windows-dependencies/x86/oggenc2.exe=oggenc2.exe --include-data-file=../windows-dependencies/x86/bootstrap.exe=bootstrap.exe --include-data-file=app-configuration.defaults=app-configuration.defaults --include-data-dir=locales=locales --include-data-dir=../public=documentation --include-data-dir=sounds=sounds --include-data-file=session.defaults=session.defaults --windows-disable-console --windows-file-description="Accessible VK Client for Windows" --windows-product-version=2021.12.14.0 --windows-file-version=2021.12.14.0 --windows-product-name="Socializer" --windows-company-name="MCV Software" --python-flag=no_site --assume-yes-for-downloads --remove-output "socializer.py"'
|
|
- 'python ..\scripts\copy_missing_files.py'
|
|
- 'cd ..'
|
|
- 'mkdir artifacts'
|
|
- 'cd scripts'
|
|
- 'python prepare_zipversion.py'
|
|
- 'cd ..'
|
|
- 'move src\socializer.zip artifacts\socializer_x86.zip'
|
|
- 'mv src/socializer.dist artifacts/program32'
|
|
artifacts:
|
|
expire_in: 1 day
|
|
paths:
|
|
- artifacts
|
|
|
|
make_installer:
|
|
stage: generate_versions
|
|
interruptible: true
|
|
tags:
|
|
- windows10
|
|
only:
|
|
- tags
|
|
- schedule
|
|
- master
|
|
variables:
|
|
NSIS: "C:\\program files (x86)\\nsis\\makensis.exe"
|
|
before_script:
|
|
- 'choco upgrade all'
|
|
script:
|
|
- cd artifacts
|
|
- '&$env:NSIS installer.nsi'
|
|
artifacts:
|
|
paths:
|
|
- artifacts
|
|
expire_in: 1 day
|
|
|
|
upload:
|
|
stage: upload
|
|
tags:
|
|
- docker
|
|
image: python
|
|
interruptible: true
|
|
script:
|
|
- cd artifacts
|
|
- python ../scripts/upload.py
|
|
only:
|
|
- tags
|
|
- schedules
|
|
- master |