From 600558c9c01dd46259c235a94ca44e4d90dcac7a Mon Sep 17 00:00:00 2001 From: Kim Date: Sat, 7 Aug 2021 20:52:05 +0200 Subject: [PATCH] add .drone.yml --- .drone.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 72ab32f..a03c891 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,10 +16,13 @@ steps: - apk --no-cache add gcc musl-dev tzdata - pip3 install --no-cache-dir -r requirements.txt - echo "$DEBUG_MODE" - - python3 - - from loghandler import logger - - 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") + - | + 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()'