1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 11:28:23 +02:00

Try to fix Travis build

This commit is contained in:
squidfunk 2018-05-11 10:45:04 +02:00
parent 3807f6d75f
commit 57b2ddf335

View File

@ -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; :;