add .drone.yml

This commit is contained in:
Kim Oliver Drechsel 2021-08-07 20:36:37 +02:00
parent 8331c1112c
commit f0cb2a07fe

View File

@ -6,23 +6,17 @@ workspace:
path: /drone/src
steps:
- name: Prepare Environment
image: python:3.8-alpine
pull: if-not-exists
environment:
TZ: 'Europe/Berlin'
commands:
- apk --no-cache add gcc musl-dev tzdata
- pip3 install --no-cache-dir -r requirements.txt
- name: Test App
- name: test
image: python:3.8-alpine
pull: if-not-exists
environment:
DEBUG_MODE: 'True'
TZ: 'Europe/Berlin'
commands:
- |
- apk --no-cache add gcc musl-dev tzdata
- pip3 install --no-cache-dir -r requirements.txt
- echo "$DEBUG_MODE"
- - |
python3 -c 'from loghandler import logger;
def main():
logger.debug("This is a Debug Message")