aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Hoeppner2015-04-19 19:40:01 +0200
committerTill Hoeppner2015-04-19 19:40:01 +0200
commit7ebe0df7282fd9850e9232dc233ce27623844778 (patch)
treee6ea7fcd9428df95b3b77be5581090e540d89fd8
parent288924cf2e41c3dcffa21fa2e8e36ab3d86a7208 (diff)
downloadirsc-7ebe0df7282fd9850e9232dc233ce27623844778.tar.gz
irsc-7ebe0df7282fd9850e9232dc233ce27623844778.tar.xz
irsc-7ebe0df7282fd9850e9232dc233ce27623844778.zip
Hopefully setup travis doc generation
-rw-r--r--.travis.yml11
1 files changed, 11 insertions, 0 deletions
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 "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > 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=