CI/CD working #3
21
.drone.yml
21
.drone.yml
|
|
@ -2,28 +2,21 @@ kind: pipeline
|
|||
name: default
|
||||
type: docker
|
||||
|
||||
workspace:
|
||||
path: /
|
||||
|
||||
steps:
|
||||
- name: unittest
|
||||
pipeline:
|
||||
setup:
|
||||
image: python
|
||||
commands:
|
||||
- pip install -r requirements_test.txt
|
||||
- ./scripts/CI/setup.sh
|
||||
|
||||
unittest:
|
||||
image: python
|
||||
commands:
|
||||
- ./scripts/CI/test.sh
|
||||
|
||||
settings:
|
||||
username:
|
||||
from_secret: gitea_username
|
||||
password:
|
||||
from_secret: gitea_password
|
||||
|
||||
- name: static analysis
|
||||
static analysis:
|
||||
image: python
|
||||
commands:
|
||||
- pip install -r requirements_test.txt
|
||||
- ./scripts/CI/setup.sh
|
||||
- ./scripts/CI/lint.sh
|
||||
|
||||
settings:
|
||||
|
|
|
|||
Loading…
Reference in New Issue