diff --git a/.travis.sh b/.travis.sh index d736add5d..243ff6ac2 100755 --- a/.travis.sh +++ b/.travis.sh @@ -53,7 +53,7 @@ if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then # Install GitHub pages import helper and Material, so we can use it as a # base template and add overrides - pip install ghp-import --user + pip install --user ghp-import python setup.py install # Build documentation with overrides and publish to GitHub pages @@ -61,6 +61,9 @@ if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then ghp-import --no-jekyll --force --push site fi +# Remove overrides directory so it won't get included in the image +rm -rf overrides + # Terminate if we're not on a release branch echo "$TRAVIS_BRANCH" | grep -qvE "^[0-9.]+$" && exit 0; :;