From 07fc6e86e0643c6fe85dbea51331c3f8df3aa5ce Mon Sep 17 00:00:00 2001 From: Jordi Loyzaga Date: Sat, 27 Apr 2024 03:17:13 -0600 Subject: [PATCH] Testing drone pipeline --- .drone.yml | 45 +++++++++++++++++++-------------------------- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/.drone.yml b/.drone.yml index 57e8cef..841ceef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,34 +2,27 @@ kind: pipeline name: default type: docker -workspace: - path: / +pipeline: + setup: + image: python + commands: + - pip install -r requirements_test.txt + - ./scripts/CI/setup.sh -steps: -- name: unittest - image: python - commands: - - pip install -r requirements_test.txt - - ./scripts/CI/setup.sh - - ./scripts/CI/test.sh + unittest: + image: python + commands: + - ./scripts/CI/test.sh - settings: - username: - from_secret: gitea_username - password: - from_secret: gitea_password + static analysis: + image: python + commands: + - ./scripts/CI/lint.sh -- name: static analysis - image: python - commands: - - pip install -r requirements_test.txt - - ./scripts/CI/setup.sh - - ./scripts/CI/lint.sh - - settings: - username: - from_secret: gitea_username - password: - from_secret: gitea_password +settings: + username: + from_secret: gitea_username + password: + from_secret: gitea_password