Unverified Commit 6262f01c authored by micimize's avatar micimize
Browse files

add custom make command "make doctest_examples"

parent 9e398fe8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -42,8 +42,7 @@ install:
script:
  - if [[ "$DOCTEST_EXAMPLES" == "true" ]]; then
      cd docs && pip install -r requirements.txt;
      PYTHONWARNINGS= sphinx-build -M doctest ./ _build examples.rst;
      travis_terminate;
      make doctest_examples;
    fi
  - bash devtools/run_yapf.sh
  - bash devtools/run_flake8.sh
+4 −0
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@ help:

.PHONY: help Makefile

doctest_examples:
	export PYTHONWARNINGS= 
	@$(SPHINXBUILD) -M doctest "$(SOURCEDIR)" "$(BUILDDIR)" examples.rst;

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile