Compare commits
3 Commits
main
...
ci_testing
Author | SHA1 | Date | |
---|---|---|---|
b85551806b | |||
2717aeadde | |||
9ea46e0398 |
32
.drone.yml
32
.drone.yml
@ -3,7 +3,37 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:latest
|
image: rust:1.77.2-slim
|
||||||
commands:
|
commands:
|
||||||
- cargo build --verbose --all
|
- cargo build --verbose --all
|
||||||
- cargo test --verbose --all
|
- cargo test --verbose --all
|
||||||
|
- name: test_fmt
|
||||||
|
image: rustdocker/rustfmt:1.77.2
|
||||||
|
commands:
|
||||||
|
- cargo fmt -- --check
|
||||||
|
failure: ignore
|
||||||
|
- name: deploy
|
||||||
|
image: rust:1.77.2-slim
|
||||||
|
commands:
|
||||||
|
- echo "deploying staging..."
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include: [ promote ]
|
||||||
|
target:
|
||||||
|
include: [ staging ]
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
- test_fmt
|
||||||
|
|
||||||
|
- name: deploy_prod
|
||||||
|
image: rust:1.77.2-slim
|
||||||
|
commands:
|
||||||
|
- echo "deploying production..."
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include: [ promote ]
|
||||||
|
target:
|
||||||
|
include: [ production ]
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
- test_fmt
|
||||||
|
Loading…
Reference in New Issue
Block a user