Attempt to run docs without travis-cargo.
@@ -50,8 +50,11 @@ after_success:
# upload the documentation from the build with stable (automatically only
# actually runs from the master branch, not individual PRs), not on OSX.
- |
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- cd rusoto && travis-cargo --only stable doc-upload && cd ..
+ if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
+ cd rusoto && echo '<meta http-equiv=refresh content=0;url=rusoto_core/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 \
+ && cd ..
fi
# measure code coverage and upload to coveralls.io (the verify argument
# mitigates kcov crashes due to malformed debuginfo, at the cost of some
