separate pipelines
This commit is contained in:
parent
f9dd1ce4dc
commit
048e432a9e
27
.drone.yml
27
.drone.yml
@ -1,23 +1,13 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fmt
|
|
||||||
image: rust:1.43.0
|
|
||||||
commands:
|
|
||||||
- rustup component add rustfmt
|
|
||||||
- cargo fmt --all -- --check
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1.43.0
|
image: rust:1.43.0
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
||||||
- echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev
|
- echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev
|
||||||
- cargo test
|
- cargo test
|
||||||
- name: readme
|
|
||||||
image: msrd0/cargo-readme@sha256:2b916451e576cda54f1e02703fa092b9d5af95bcf48426a1ef42872a19467fd3
|
|
||||||
commands:
|
|
||||||
- cargo readme > ~README.md
|
|
||||||
- cmp -s README.md ~README.md || (printf "README.md need to be updated:\n"; cat ~README.md; exit 1)
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: rust:1.43.0
|
image: rust:1.43.0
|
||||||
environment:
|
environment:
|
||||||
@ -31,3 +21,18 @@ steps:
|
|||||||
- cargo publish --all-features
|
- cargo publish --all-features
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: style
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: fmt
|
||||||
|
image: rust:1.43.0
|
||||||
|
commands:
|
||||||
|
- rustup component add rustfmt
|
||||||
|
- cargo fmt --all -- --check
|
||||||
|
- name: readme
|
||||||
|
image: msrd0/cargo-readme@sha256:2b916451e576cda54f1e02703fa092b9d5af95bcf48426a1ef42872a19467fd3
|
||||||
|
commands:
|
||||||
|
- cargo readme > ~README.md
|
||||||
|
- cmp -s README.md ~README.md || (printf "README.md need to be updated:\n"; cat ~README.md; exit 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user