From 584d892f44f39b386bd5615b25d7bd0ef650a195 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio <jorge@japaric.io> Date: Wed, 2 Aug 2017 21:23:32 -0500 Subject: [PATCH] fix after_success --- ci/after_success.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci/after_success.sh b/ci/after_success.sh index 7a809e0..8ddfe6c 100644 --- a/ci/after_success.sh +++ b/ci/after_success.sh @@ -1,14 +1,18 @@ set -euxo pipefail main() { - cargo doc + if [ $TARGET = x86_64-unknown-linux-gnu ]; then + return + fi + + xargo doc --target $TARGET mkdir ghp-import curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz | \ tar --strip-components 1 -C ghp-import -xz - ./ghp-import/ghp_import.py target/doc + ./ghp-import/ghp_import.py target/$TARGET/doc set +x git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && \ -- GitLab