1
0
mirror of https://github.com/shimunn/aria2xspf.git synced 2023-11-17 09:27:54 +01:00
aria2xspf/.drone.yml
Shimun 5ef68507b8
All checks were successful
continuous-integration/drone/push Build is passing
update image
2019-06-08 20:07:31 +02:00

55 lines
1.1 KiB
YAML

kind: pipeline
name: default
steps:
- name: test
image: rust:1.35.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- cargo test
- name: fmt
image: rust:1.35.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- rustup component add rustfmt
- cargo fmt -- --check
- name: clippy
image: rust:1.35.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- rustup component add clippy
- cargo clippy
- name: build_relase
image: rust:1.35.0
environment:
CARGO_HOME: /drone/.cargo
commands:
- mkdir bin
- export CARGO_INSTALL_ROOT=$PWD
- rustup target add x86_64-unknown-linux-musl
- cargo install --path . --target x86_64-unknown-linux-musl
- mkdir dist
- tar cvzf binary.tar.gz bin/*
when:
event:
- tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_tkn
base_url:
from_secret: gitea_url
files:
- binary.tar.gz
checksum:
- md5
- sha512
when:
event:
- tag