From c1d58f1806192fdb3625ea84b64f250d27f3a742 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Tue, 16 Oct 2018 18:20:58 +0200 Subject: [PATCH] Add CI config --- rust-bindings/rust/.gitlab-ci.yml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 rust-bindings/rust/.gitlab-ci.yml diff --git a/rust-bindings/rust/.gitlab-ci.yml b/rust-bindings/rust/.gitlab-ci.yml new file mode 100644 index 00000000..31fb2058 --- /dev/null +++ b/rust-bindings/rust/.gitlab-ci.yml @@ -0,0 +1,45 @@ +stages: +- build +- package + +libostree-sys_rust-stable: + stage: build + image: rust:latest + script: + - cargo build --verbose --package libostree-sys + - cargo test --verbose --package libostree-sys + +libostree_rust-stable: + stage: build + image: rust:latest + script: + - cargo build --verbose --package libostree + - cargo test --verbose --package libostree + +libostree-sys_rust-nightly: + stage: build + image: rustlang/rust:nightly + script: + - cargo build --verbose --package libostree-sys + - cargo test --verbose --package libostree-sys + allow_failure: true + +libostree_rust-nightly: + stage: build + image: rustlang/rust:nightly + script: + - cargo build --verbose --package libostree + - cargo test --verbose --package libostree + allow_failure: true + +libostree-sys_package: + stage: package + image: rust:latest + script: + - cargo package --manifest-path libostree-sys/Cargo.toml + +libostree_package: + stage: package + image: rust:latest + script: + - cargo package --manifest-path libostree/Cargo.toml