2022-04-09 19:44:24 +00:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: "woodpeckerci/plugin-git:next"
|
|
|
|
pipeline:
|
|
|
|
compliance:
|
|
|
|
commands:
|
|
|
|
- "rustup component add clippy"
|
|
|
|
- "cargo build --verbose"
|
|
|
|
- "cargo clippy --workspace --tests --all-targets --all-features"
|
|
|
|
- "cargo test --workspace --no-fail-fast"
|
2024-04-28 21:51:30 +00:00
|
|
|
image: "rust:1.77-buster"
|
2022-04-09 19:44:24 +00:00
|
|
|
when:
|
|
|
|
event: pull_request, push
|
|
|
|
build:
|
|
|
|
commands:
|
|
|
|
- "cargo build --release"
|
2024-04-28 21:51:30 +00:00
|
|
|
image: "rust:1.77-buster"
|
2022-04-09 19:44:24 +00:00
|
|
|
when:
|
|
|
|
branch: main
|
|
|
|
event: push
|
|
|
|
release:
|
|
|
|
image: jolheiser/drone-gitea-main:latest
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base: https://git.jojodev.com
|
|
|
|
files:
|
2022-04-09 19:55:51 +00:00
|
|
|
- "target/release/formaty"
|
2022-04-09 19:44:24 +00:00
|
|
|
when:
|
|
|
|
branch: main
|
|
|
|
event: push
|