This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -7,20 +7,12 @@ steps:
|
|||||||
image: python:3.9
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- cd web # Change to the correct directory
|
- find . -name "*.py" -exec python -m py_compile {} \;
|
||||||
- python app.py | tee output.log
|
|
||||||
when:
|
when:
|
||||||
timeout: 15s
|
timeout: 15s
|
||||||
|
|
||||||
- name: check-success
|
|
||||||
image: alpine:latest
|
|
||||||
commands:
|
|
||||||
- grep "Debug mode: on" output.log
|
|
||||||
|
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "Cleaning up any created data..."
|
- echo "Cleaning up any created data..."
|
||||||
- rm -rf /tmp/*
|
- rm -rf /tmp/*
|
||||||
depends_on:
|
|
||||||
- check-success
|
|
||||||
Reference in New Issue
Block a user