From 91987c91017c18d62b5631dead47622b141955e2 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Sun, 3 May 2015 21:42:48 -0400 Subject: [PATCH] Have travis push docs to github pages instead of rust-ci --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f1bedad..7773a9b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,15 @@ language: rust env: global: - - secure: Dr/AOuXnBuLZqw0ZW+KDKlCyUGUfqMv5AnuPr8mnzxL3CrWInBwoNv8bME3pY10A/u4e16+T6NhdK5AuoYvhTnDUM0srGMhHgTtV8X5yQog1U0BUIMTfQhgGOQ+/2m0yawjtm7KTZQmNCh5+c/S26fZPVcgoMpu9GZR5h7m2ep4= + secure: "FyGzHF0AIYdBcuM/2qIoABotx3MbNAlaHDzxPbbeUlVg64bnuib9G9K/qWve0a1BWCgv+8e/SbXZb7gt3JlUNE27aE4RZG4FEdtEpLYQp87Dc9d9HX0FwpUeFK3binsrtYl4WEBnIjQ3ICnUVey0E6GHEdkM+t5bWyJO5c4dJ30=" script: - cargo build - cargo test - cargo doc --no-deps -after_script: - - mv target/doc . - - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh +after_success: | + echo '' > target/doc/index.html && + sudo pip install ghp-import && + ghp-import -n target/doc && + git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages