10000 ci: Print out reasons for not deploying docs. · matplotlib/matplotlib@7d7318d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d7318d

Browse files
committed
ci: Print out reasons for not deploying docs.
1 parent a56da39 commit 7d7318d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.circleci/deploy-docs.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
set -e
44

5-
if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" -o "$CIRCLE_BRANCH" != "master" -o "$CIRCLE_PULL_REQUEST" != "" ]; then
6-
echo "Not uploading docs from non-master branch or non-Matplotlib org."
5+
if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" ] || \
6+
[ "$CIRCLE_BRANCH" != "master" ] || \
7+
[ "$CIRCLE_PULL_REQUEST" != "" ]; then
8+
echo "Not uploading docs for ${CIRCLE_SHA1}"\
9+
"from non-master branch (${CIRCLE_BRANCH})"\
10+
"or pull request (${CIRCLE_PULL_REQUEST})"\
11+
"or non-Matplotlib org (${CIRCLE_PROJECT_USERNAME})."
712
exit
813
fi
914

0 commit comments

Comments
 (0)
0