From d918602c85aa70af2308c2e2880b97f85925572f Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 10 Sep 2019 09:57:18 -0500 Subject: [PATCH] Add CI configuration. --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6054709 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: rust + +stages: + - test + - publish + +before_script: + - apt-get update + - apt-get install -y libclang-3.9-dev libspeechd-dev + - export CPATH=/usr/lib/llvm-3.9/lib/clang/3.9.1/include/ + +test: + stage: test + script: + - cargo test + +publish: + stage: publish + script: + - cargo login $CARGO_TOKEN + - cargo package + - cargo publish + only: + - tags