use parallelism
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
shimun 2020-06-29 20:42:23 +02:00
parent 048e432a9e
commit 453a218efa
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -1,7 +1,17 @@
kind: pipeline
name: build
name: default
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)
- name: test
image: rust:1.43.0
commands:
@ -21,18 +31,4 @@ steps:
- cargo publish --all-features
when:
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)
depends_on: ["fmt", "test", "readme"]