Added travis config and doc url

This commit is contained in:
Sebastian Thiel
2015-02-26 20:03:33 +01:00
parent 50b3f5e357
commit fa9fcb9b6f
2 changed files with 14 additions and 0 deletions

13
.travis.yml Normal file
View File

@@ -0,0 +1,13 @@
language: rust
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo '<meta http-equiv=refresh content=0;url=yup-oauth2/index.html>' > target/doc/index.html &&
git shortlog -s -n | cut -c 8- > target/doc/humans.txt &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
env:
global:
secure: R2TjgAkb9vgibslocKKMQ1fterul/nJJ/Srv8mxbzA/z569ZKFeR8gFlM0bxUkQVeJpGkHKkR6dcNuk6xtafRkm2W5Q04FUqF7/eEzvzMpf0a1kPOld44dZgYbncmk3bend40+fOwDpubozTtuLoimDIIxqdNp39d7w5h0a+s1U=

View File

@@ -7,6 +7,7 @@ repository = "https://github.com/Byron/yup/lib/oauth2"
description = """A partial oauth2 implementation, providing the 'device' authorization flow.
More information about how it's done can be found here: https://developers.google.com/youtube/v3/guides/authentication#devices
"""
documentation = "http://byron.github.io/yup-oauth2"
[dependencies]
chrono = "*"