music-dl/.gitlab-ci.yml

120 lines
2.7 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:\\python310\\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 build'
- cd scripts
- 'python prepare_zipversion.py'
- cd ..
- move src\music_dl.zip build\music_dl_x64.zip
- 'move src/dist build/program64'
- 'move src/installer.nsi build'
only:
- schedules
- master
artifacts:
paths:
- build
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:\\python310-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 https://github.com/josephsl/wxpy32whl/raw/main/wxPython-4.2.0-cp310-cp310-win32.whl'
2021-12-29 17:51:40 +01:00
- '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 build'
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 build\music_dl_x86.zip
- 'move src/dist build/program32'
only:
- schedules
2021-12-29 17:51:40 +01:00
- master
artifacts:
paths:
- build
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:
- mkdir artifacts
- 'cd build'
- '&$env:NSIS installer.nsi'
- move *.exe *.zip ../artifacts
only:
- tags
- master
- schedules
artifacts:
paths:
- artifacts
expire_in: 1 day
upload:
image:
name: amazon/aws-cli
entrypoint: [""]
tags:
- docker
only:
- tags
- master
interruptible: true
stage: upload
script:
- aws --version
- aws --endpoint-url https://s3.us-west-001.backblazeb2.com s3 cp artifacts s3://$S3_BUCKET/music_dl/ --recursive