2018-01-12 17:28:39 +00:00
|
|
|
image: rust
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- publish
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apt-get update
|
2020-08-20 00:55:31 +00:00
|
|
|
- apt-get install -y libspeechd-dev llvm-dev libclang-dev clang
|
2018-01-12 17:28:39 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cargo test
|
|
|
|
|
|
|
|
publish:
|
|
|
|
stage: publish
|
|
|
|
script:
|
|
|
|
- cargo login $CARGO_TOKEN
|
2019-12-22 18:16:36 +00:00
|
|
|
- cargo package --manifest-path speech-dispatcher-sys/Cargo.toml
|
2019-12-30 15:24:12 +00:00
|
|
|
- cargo publish --manifest-path speech-dispatcher-sys/Cargo.toml || true
|
2019-12-22 19:36:50 +00:00
|
|
|
- cargo package --manifest-path speech-dispatcher/Cargo.toml
|
2019-12-22 18:16:36 +00:00
|
|
|
- cargo publish --manifest-path speech-dispatcher/Cargo.toml
|
2018-01-12 17:28:39 +00:00
|
|
|
only:
|
|
|
|
- tags
|