From 575fdc8c0db8ed9adeb6d844e51af66770c73a2d Mon Sep 17 00:00:00 2001 From: gnzlbg <gonzalobg88@gmail.com> Date: Wed, 20 Feb 2019 17:57:01 +0100 Subject: [PATCH] Do not try to build documentation for apple targets from Linux --- ci/dox.sh | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/ci/dox.sh b/ci/dox.sh index 21a63dd7..ff49298c 100644 --- a/ci/dox.sh +++ b/ci/dox.sh @@ -25,15 +25,25 @@ rm $PLATFORM_SUPPORT || true printf '### Platform-specific documentation\n' >> $PLATFORM_SUPPORT while read -r target; do - echo "documenting ${target}" + echo "documenting ${target}" - rustup target add "${target}" || true - xargo doc --target "${target}" \ - --no-default-features --features extra_traits + case "${target}" in + *apple*) + # FIXME: + # We can't build docs of apple targets from Linux yet. + continue + ;; + *) + ;; + esac - cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}" + rustup target add "${target}" || true + xargo doc --target "${target}" \ + --no-default-features --features extra_traits - echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT + cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}" + + echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT done < targets # Replace <div class="platform_support"></div> with the contents of $PLATFORM_SUPPORT -- GitLab