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