26 lines
540 B
YAML
26 lines
540 B
YAML
image: rust
|
|
|
|
stages:
|
|
- test
|
|
- publish
|
|
|
|
before_script:
|
|
- apt-get update
|
|
- apt-get install -y libspeechd-dev llvm-dev libclang-dev clang
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- cargo test
|
|
|
|
publish:
|
|
stage: publish
|
|
script:
|
|
- cargo login $CARGO_TOKEN
|
|
- cargo package --manifest-path speech-dispatcher-sys/Cargo.toml
|
|
- cargo publish --manifest-path speech-dispatcher-sys/Cargo.toml || true
|
|
- cargo package --manifest-path speech-dispatcher/Cargo.toml
|
|
- cargo publish --manifest-path speech-dispatcher/Cargo.toml
|
|
only:
|
|
- tags
|