Skip to content

Commit fc7a8e9

Browse files
committed
travis: Fix documentation deploy on tagged builds
Fixes: #52
1 parent c9e9314 commit fc7a8e9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.ci/travis-build-docs.sh

+1-12
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,10 @@ SOURCE_BRANCH="master"
1313
TARGET_BRANCH="gh-pages"
1414
DOC_BUILD_DIR="_build/html/"
1515

16-
if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
17-
echo "Skipping documentation build on non-linux."
18-
exit 0
19-
fi
20-
2116
pip install -r docs/requirements.txt
2217
make htmldocs
2318

24-
if [ "${TRAVIS_PULL_REQUEST}" != "false" \
25-
-o "${TRAVIS_OS_NAME}" != "linux" ]; then
26-
echo "Skipping documentation deploy."
27-
exit 0
28-
fi
29-
30-
if [ "${TRAVIS_BRANCH}" != "${SOURCE_BRANCH}" -a -z "${TRAVIS_TAG}" ]; then
19+
if [ "${TRAVIS_PULL_REQUEST}" != "false" -o -z "${TRAVIS_TAG}" ]; then
3120
echo "Skipping documentation deploy."
3221
exit 0
3322
fi

0 commit comments

Comments
 (0)