From 797de27d2b90e3876ef0fb6d3fdbff148fb7c526 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Sun, 17 Feb 2019 10:12:27 +0100 Subject: [PATCH] allow build:rust:doc:release job to fail (#1812) --- substrate/.gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 64bc98c731..bda6a6e5e8 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -140,6 +140,7 @@ build:rust:linux:release: &build build:rust:doc:release: &build stage: build + allow_failure: true artifacts: name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc" when: on_success @@ -150,6 +151,7 @@ build:rust:doc:release: &build tags: - linux-docker script: + - rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds - time cargo doc --release --verbose - cp -R ./target/doc ./crate-docs - echo "" > ./crate-docs/index.html @@ -231,6 +233,10 @@ publish:s3:doc: BUCKET: "releases.parity.io" PREFIX: "substrate-rustdoc" script: + - test -r ./crate-docs/index.html || ( + echo "./crate-docs/index.html not present, build:rust:doc:release job not complete"; + exit 1 + ) - aws s3 sync --delete --size-only --only-show-errors ./crate-docs/ s3://${BUCKET}/${PREFIX}/ after_script: