music-dl/.gitlab-ci.yml

118 lines
2.6 KiB
YAML
Raw Normal View History

2018-12-29 16:09:25 +01:00
stages:
- test
- generate_docs
- build
- versions
- upload
2018-12-29 16:20:22 +01:00
program64:
interruptible: true
tags:
- windows
- windows10
stage: build
variables:
PYTHON: "C:\\python37\\python.exe"
before_script:
- Set-Variable -Name "time" -Value (date -Format "%H:%m")
- echo ${time}
- echo "started by ${GITLAB_USER_NAME}"
- '&$env:PYTHON -V'
- '&$env:PYTHON -m pip install --upgrade pip'
- '&$env:PYTHON -m venv env'
- 'env\Scripts\Activate.ps1'
- 'python -m pip install --upgrade -r requirements.txt'
script:
- cd src
- 'python write_version_data.py'
- 'python setup.py build'
- cd ..
- 'mkdir artifacts'
- cd scripts
- 'python prepare_zipversion.py'
- cd ..
- move src\music_dl.zip artifacts\music_dl_x64.zip
- 'move src/dist artifacts/program64'
only:
- schedules
- master
artifacts:
paths:
- artifacts
expire_in: 1 day
2021-12-29 17:51:40 +01:00
program32:
interruptible: true
2018-12-30 03:18:37 +01:00
tags:
- windows
2021-12-29 17:51:40 +01:00
- windows10
stage: build
variables:
PYTHON: "C:\\python37-32\\python.exe"
2018-12-30 03:18:37 +01:00
before_script:
- Set-Variable -Name "time" -Value (date -Format "%H:%m")
- echo ${time}
- echo "started by ${GITLAB_USER_NAME}"
2021-12-29 17:51:40 +01:00
- '&$env:PYTHON -V'
- '&$env:PYTHON -m pip install --upgrade pip'
- '&$env:PYTHON -m venv env'
- 'env\Scripts\Activate.ps1'
- 'python -m pip install --upgrade -r requirements.txt'
2018-12-29 16:09:25 +01:00
script:
2018-12-29 03:07:56 +01:00
- cd src
2021-12-29 17:51:40 +01:00
- 'python write_version_data.py'
- 'python setup.py build'
- cd ..
- 'mkdir artifacts'
2018-12-29 20:38:25 +01:00
- cd scripts
2021-12-29 17:51:40 +01:00
- 'python prepare_zipversion.py'
2018-12-29 20:38:25 +01:00
- cd ..
- move src\music_dl.zip artifacts\music_dl_x86.zip
- 'move src/dist artifacts/program32'
only:
- schedules
2021-12-29 17:51:40 +01:00
- master
artifacts:
paths:
- artifacts
expire_in: 1 day
generate_versions:
stage: versions
tags:
- windows
- windows10
variables:
NSIS: "C:\\program files (x86)\\nsis\\makensis.exe"
before_script:
- Set-Variable -Name "time" -Value (date -Format "%H:%m")
- echo ${time}
- echo "started by ${GITLAB_USER_NAME}"
script:
- 'cd artifacts'
- '&$env:NSIS ..\src\installer.nsi'
- 'Remove-Item -path program32 -recurse'
- 'Remove-Item -path program64 -recurse'
only:
- tags
- master
- schedules
artifacts:
paths:
- artifacts
expire_in: 1 day
upload:
stage: upload
tags:
- linux
image: python
interruptible: true
script:
- cd artifacts
- python ../scripts/generate_update_file.py
- python ../scripts/upload.py
only:
2021-12-29 17:51:40 +01:00
- master
- tags
- schedules