Only document on master branch.
@@ -47,10 +47,9 @@ script:
cd rusoto && cargo doc --all --no-deps && cd ..
fi
after_success:
- # upload the documentation from the build with stable (automatically only
- # actually runs from the master branch, not individual PRs), not on OSX.
+ # upload the documentation from the build if it's from Rust stable, Linux and not a pull request:
- |
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
+ if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" && "$TRAVIS_PULL_REQUEST" == false ]]; then
cd rusoto && echo '<meta http-equiv=refresh content=0;url=rusoto_core/index.html>' > target/doc/index.html \
&& mkdir target/doc/rusoto/ && echo '<meta http-equiv=refresh content=0;url=../rusoto_core/index.html>' > target/doc/rusoto/index.html \
&& sudo pip install ghp-import && ghp-import -n target/doc \
