From f0cb2a07fee78318c7bc04bf38c37497710cd892 Mon Sep 17 00:00:00 2001 From: Kim Date: Sat, 7 Aug 2021 20:36:37 +0200 Subject: [PATCH] add .drone.yml --- .drone.yml | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 63804c9..2a1413c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,29 +6,23 @@ 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: - - | - 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") + - 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()' \ No newline at end of file + main()'