add .drone.yml
This commit is contained in:
parent
8331c1112c
commit
f0cb2a07fe
32
.drone.yml
32
.drone.yml
@ -6,29 +6,23 @@ workspace:
|
|||||||
path: /drone/src
|
path: /drone/src
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare Environment
|
- name: test
|
||||||
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
|
|
||||||
image: python:3.8-alpine
|
image: python:3.8-alpine
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
environment:
|
environment:
|
||||||
DEBUG_MODE: 'True'
|
DEBUG_MODE: 'True'
|
||||||
TZ: 'Europe/Berlin'
|
TZ: 'Europe/Berlin'
|
||||||
commands:
|
commands:
|
||||||
- |
|
- apk --no-cache add gcc musl-dev tzdata
|
||||||
python3 -c 'from loghandler import logger;
|
- pip3 install --no-cache-dir -r requirements.txt
|
||||||
def main():
|
- echo "$DEBUG_MODE"
|
||||||
logger.debug("This is a Debug Message")
|
- - |
|
||||||
logger.info("This is a Info Message")
|
python3 -c 'from loghandler import logger;
|
||||||
logger.warning("This is a Warning Message")
|
def main():
|
||||||
logger.error("This is a Error Message")
|
logger.debug("This is a Debug Message")
|
||||||
logger.critical("This is a Critical Message")
|
logger.info("This is a Info Message")
|
||||||
|
logger.warning("This is a Warning Message")
|
||||||
|
logger.error("This is a Error Message")
|
||||||
|
logger.critical("This is a Critical Message")
|
||||||
|
|
||||||
main()'
|
main()'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user