RUFF/.drone.yml
LordMZTE 8df1e025c2
All checks were successful
continuous-integration/drone/push Build is passing
add drone cicd
2021-01-15 19:17:54 +01:00

46 lines
1 KiB
YAML

kind: pipeline
name: tests
steps:
- name: test-linux
image: rust
commands:
- cargo test -v
# Try to build docker image
- name: test-docker-build
image: plugins/docker
settings:
repo: lordmzte/ruff
# Don't push
dry_run: true
---
kind: pipeline
name: release
steps:
- name: release-linux
image: rust
commands:
- cargo build --release -v
- name: release-win
image: lordmzte/rust-win
commands:
- cargo build --release --target x86_64-pc-windows-gnu -v
- name: publish
image: plugins/gitea-release
settings:
base_url: https://data.tilera.xyz/git
api_key:
from_secret: gitea_token
note: CHANGELOG.md
title: tag-${DRONE_TAG}
files:
- target/release/ruff
- target/x86_64-pc-windows-gnu/release/ruff.exe
when:
event: tag
depends_on:
- release-linux
- release-win