add .drone.yml

This commit is contained in:
Jérémi N ‘EndMove’ 2023-02-10 20:29:24 +01:00
parent 5f319e39b7
commit 8810ff47e5
Signed by: EndMove
GPG Key ID: 65C4A02E1F5371A4
3 changed files with 42 additions and 1 deletions

33
.drone.yml Normal file
View File

@ -0,0 +1,33 @@
---
# This is the pipeline 1
kind: pipeline
type: docker
name: run_tests
# Only trigger on these event
trigger:
event:
- tag
# Pipeline steps
steps:
# Testing
- name: Testing
image: python:3.10
commands:
- pip install -r requirements.txt
- python3 run_tests.py
- python3 -c "print('The current triggered tag is ${DRONE_TAG}')"
- pyinstaller --noconfirm --onefile --windowed --icon "./webpicdownloader/assets/logo.ico" --name "WebPicDownloader" --clean --version-file "./app_version_file.txt" --add-data "./webpicdownloader/assets;webpicdownloader/assets/" --exclude-module "auto_py_to_exe" --exclude-module "pyinstaller" --exclude-module "unittest" "./WebPicDownloader/main.py"
# Notifying
# - name: deploy_&_notify
# image: appleboy/drone-discord
# settings:
# webhook_id:
# from_secret: discord_id
# webhook_token:
# from_secret: discord_token
# message: "Release with tag works ! (TAG uuid: {{build.tag}})"
# when:
# status:
# - success

View File

@ -13,4 +13,5 @@ if __name__ == '__main__':
version=get_config().get('app_version')
)
apte.__name__ = '__main__'
apte.run()
apte.run()
# pyinstaller --noconfirm --onefile --windowed --icon "./webpicdownloader/assets/logo.ico" --name "WebPicDownloader" --clean --version-file "./app_version_file.txt" --add-data "./webpicdownloader/assets;webpicdownloader/assets/" --exclude-module "auto_py_to_exe" --exclude-module "pyinstaller" --exclude-module "unittest" "./WebPicDownloader/main.py"

7
requirements.txt Normal file
View File

@ -0,0 +1,7 @@
# Production dependancies
beautifulsoup4==4.11.*
urllib3==1.26.*
# Dev dependancies
auto-py-to-exe==2.26.0
pyinstaller==5.7.0