diff --git a/.travis.yml b/.travis.yml index 2afd1c2..94ae2c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,3 +17,11 @@ script: - cargo build --verbose - cargo test --verbose - cargo test --manifest-path=spec/Cargo.toml +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 \ No newline at end of file