This commit is contained in:
parent
9c9b3fe2e6
commit
da636d5138
23
.drone.yml
23
.drone.yml
@ -6,7 +6,7 @@ workspace:
|
|||||||
path: /drone/src
|
path: /drone/src
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test with DEBUG_MODE
|
||||||
image: python:alpine
|
image: python:alpine
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
environment:
|
environment:
|
||||||
@ -26,3 +26,24 @@ steps:
|
|||||||
logger.critical("This is a Critical Message")
|
logger.critical("This is a Critical Message")
|
||||||
|
|
||||||
main()'
|
main()'
|
||||||
|
|
||||||
|
- name: test without DEBUG_MODE
|
||||||
|
image: python:alpine
|
||||||
|
pull: if-not-exists
|
||||||
|
environment:
|
||||||
|
DEBUG_MODE: 'False'
|
||||||
|
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")
|
||||||
|
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()'
|
Loading…
x
Reference in New Issue
Block a user