diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-08-22 12:46:08 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-08-23 12:45:25 +0200 |
commit | 3715c5d33b037cc00a83ae6da8833aa04a38142d (patch) | |
tree | 4649ce7bd33ae4a28ac920e757aad72457e2de68 /.travis.yml | |
parent | abaffae549076a5f497e1043a78886c47cbd7baa (diff) |
Add deploy setup for gh-pages
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index d58de10b..fb0323ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,8 +68,15 @@ addons: - libcurl4-openssl-dev - libelf-dev - libdw-dev -after_success: -- travis-cargo --only stable doc-upload +after_success: | + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + cd .imag-documentation && + cargo doc && + echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2 | sed 's/-/_/'`/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 notifications: email: on_success: never |