From 7ebe0df7282fd9850e9232dc233ce27623844778 Mon Sep 17 00:00:00 2001 From: Till Hoeppner Date: Sun, 19 Apr 2015 19:40:01 +0200 Subject: Hopefully setup travis doc generation --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index 22761ba..95fadca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,12 @@ language: rust +after_success: | + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + cargo doc && + 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 +env: + global: + secure: QesmFK+1DtDlYx8bnAC7nKKo/OeZziH+XTDjJFwPiKu7+fHk7bbO7pkd7jPLQTMR037nmvyIr0OwXlZQqA6pE6OyLd/4gUHzUfRP2NNCWIJIh1gqpOZDu29qW79RjKFHdEzuJLsKppJ8cnMlN2P9h/JpZuQBZZoRtFNFmi2OvNE= -- cgit v1.2.3