diff --git a/rust-bindings/rust/.gitlab-ci.yml b/rust-bindings/rust/.gitlab-ci.yml index 8c288c41..eb432c48 100644 --- a/rust-bindings/rust/.gitlab-ci.yml +++ b/rust-bindings/rust/.gitlab-ci.yml @@ -1,5 +1,8 @@ image: rust:latest +variables: + CARGO_TARGET_DIR: target + before_script: - echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list - apt-get update @@ -13,29 +16,29 @@ stages: libostree-sys: stage: build script: - - cargo build --verbose --package libostree-sys - - cargo test --verbose --package libostree-sys + - cargo build --verbose --manifest-path libostree-sys/Cargo.toml + - cargo test --verbose --manifest-path libostree-sys/Cargo.toml libostree: stage: build script: - - cargo build --verbose --package libostree - - cargo test --verbose --package libostree + - cargo build --verbose + - cargo test --verbose libostree-sys_nightly: stage: build image: rustlang/rust:nightly script: - - cargo build --verbose --package libostree-sys - - cargo test --verbose --package libostree-sys + - cargo build --verbose --manifest-path libostree-sys/Cargo.toml + - cargo test --verbose --manifest-path libostree-sys/Cargo.toml allow_failure: true libostree_nightly: stage: build image: rustlang/rust:nightly script: - - cargo build --verbose --package libostree - - cargo test --verbose --package libostree + - cargo build --verbose + - cargo test --verbose allow_failure: true # docs @@ -43,7 +46,6 @@ docs: stage: docs script: - make merge-lgpl-docs - - cd libostree - cargo doc --verbose --features dox artifacts: paths: @@ -64,12 +66,12 @@ publish_libostree-sys: stage: publish script: - make pre-package - - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN + - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN when: manual publish_libostree: stage: publish script: - make pre-package - - cargo publish --verbose --manifest-path libostree/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN + - cargo publish --verbose --token $CRATES_IO_TOKEN when: manual