Skip to content

Commit 339240b

Browse files
committed
Run update_json_docs.sh instead of tox -e json-docs.
Fix echos.
1 parent 61f71a8 commit 339240b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ script:
1212
- tox -e cover
1313
- tox -e system-tests
1414
- tox -e system-tests3
15-
- tox -e docs
1615
- tox -e json-docs
1716

1817
after_success:

scripts/update_json_docs.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ set -e
44

55
function pushDocs () {
66

7+
echo "Building JSON documentation..."
78
PYTHONPATH=_testing python scripts/generate_json_docs.py --tag ${1}
9+
echo "Done building JSON documentation."
810

11+
echo "Deploying JSON documentation..."
912
if [[ ! -d "ghpages" ]]; then
1013
git submodule add -f -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} ghpages
1114
fi
@@ -23,16 +26,19 @@ function pushDocs () {
2326
echo "Nothing to commit."
2427
fi
2528
cd ..
29+
30+
echo "Done deploying JSON documentation."
2631
}
2732

2833
function cleanSubmodule () {
29-
echo "Cleaning up..."
34+
echo "Cleaning up!"
3035
git submodule deinit -f ghpages
3136
git reset HEAD .gitmodules
3237
git reset HEAD ghpages
3338
rm -rf ghpages
3439
rm -f .gitmodules
3540
rm -rf .git/modules/ghpages
41+
echo "Done cleaning up!"
3642
}
3743

3844
if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then

0 commit comments

Comments
 (0)