28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: rust
|
|
commands:
|
|
- rustup component add clippy rustfmt
|
|
- apt-get update -qq
|
|
- apt-get install -qqy llvm-dev libclang-dev clang libspeechd-dev
|
|
- cargo fmt --all --check
|
|
- cargo test --no-default-features --features 0_10
|
|
- cargo clippy --no-default-features --features 0_10
|
|
- name: release
|
|
image: rust
|
|
commands:
|
|
- apt-get update -qq
|
|
- apt-get install -qqy llvm-dev libclang-dev clang libspeechd-dev
|
|
- cargo publish --no-default-features --features 0_10 --manifest-path speech-dispatcher-sys/Cargo.toml || true
|
|
- cargo publish --no-default-features --features 0_10 --manifest-path speech-dispatcher/Cargo.toml
|
|
when:
|
|
ref:
|
|
- refs/tags/v*
|
|
environment:
|
|
CARGO_REGISTRY_TOKEN:
|
|
from_secret: cargo_registry_token
|