From 935cbf416243647ef219ad5827564d39fad19f5d Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Wed, 1 Apr 2020 00:06:38 +0200 Subject: [PATCH] ci: simplify pipeline a bit maybe --- rust-bindings/rust/.gitlab-ci.yml | 39 ++++++++----------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/rust-bindings/rust/.gitlab-ci.yml b/rust-bindings/rust/.gitlab-ci.yml index 5e34e893..ec73d6ef 100644 --- a/rust-bindings/rust/.gitlab-ci.yml +++ b/rust-bindings/rust/.gitlab-ci.yml @@ -8,7 +8,7 @@ variables: RUSTC_WRAPPER: sccache before_script: -- dnf install -y cargo rust rustfmt clippy ostree-devel +- dnf install -y cargo rust ostree-devel - curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache' cache: @@ -17,35 +17,26 @@ cache: - sccache/ stages: -- check - build - publish -# format and freshness checks -fmt: - stage: check +check: + stage: build script: + - dnf install -y make git clippy rustfmt + # fmt - cargo fmt --package ostree -- --check - -gir: - stage: check - script: - - dnf install -y make + # check generated code - rm -rf src/auto/ - make gir - git checkout -- sys/src/auto/versions.txt src/auto/versions.txt - git diff -R --exit-code - -clippy: - stage: check - script: + # clippy - cargo clippy --all --all-features -# build build_default-features: stage: build - script: - - cargo test --verbose --all + script: cargo test --verbose --all # all feature levels build_v2014_9: @@ -147,8 +138,8 @@ build_v2020_1: # all feature levels # docs -docs: - stage: build +pages: + stage: publish image: rustlang/rust:nightly variables: RUSTDOC_OPTS: >- @@ -164,17 +155,7 @@ docs: - make merge-lgpl-docs - cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS} - cargo rustdoc --verbose --package ostree --features dox -- ${RUSTDOC_OPTS} - artifacts: - paths: - - target/doc - -pages: - stage: publish - image: alpine - before_script: [] - script: - cp -r target/doc public - cache: {} artifacts: paths: - public