Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script for automatic doc testing #461

Merged
merged 2 commits into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .travis/build_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,23 @@ set -o errexit

# -W treats warnings as errors to make sure all went ok
sphinx-build -W doc doc/_build

XVFBARGS="-screen 0 1280x1024x24"

# check if the widget catalog in the repository (for orange-hugo is up to date)
cd $TRAVIS_BUILD_DIR/doc/
wget_command="wget -N https://raw.githubusercontent.com/biolab/orange-hugo/master/scripts/create_widget_catalog.py"
run_command="python create_widget_catalog.py --categories \"Text Mining\" --doc ."
eval "$wget_command"
eval "catchsegv xvfb-run -a -s "\"$XVFBARGS"\" $run_command"
diff=$(git diff -- widgets.json)
if [ ! -z "$diff" ]
then
echo "Widget catalog is stale. Rebuild it with:"
echo "cd doc"
echo "$wget_command"
echo "$run_command"
echo
echo "$diff"
exit 1
fi
2 changes: 1 addition & 1 deletion conda_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- setuptools-git
- Orange3>=3.3.9
- beautifulsoup4
- pyqt=5.6.0
- pyqt
- recommonmark

- pip:
Expand Down