Skip to content

Commit d6608d5

Browse files
committed
Run docs test on azure pipelines
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent eb6c708 commit d6608d5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ docs:
154154
rm -rf docs/_build/
155155
@${ACTIVATE} sphinx-build docs/source docs/_build/
156156

157+
check_docs:
158+
@echo "Check Sphinx Documentation build minimally"
159+
@${ACTIVATE} sphinx-build -E -W docs/source build
160+
@echo "Check for documentation style errors"
161+
@${ACTIVATE} doc8 --max-line-length 100 docs/source --ignore D000 --quiet
162+
157163
docker-images:
158164
@echo "-> Build Docker services"
159165
docker-compose build

azure-pipelines.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ jobs:
3232
python_versions: ['3.10', '3.11', '3.12']
3333
test_suites:
3434
all: make test
35+
36+
- template: etc/ci/azure-posix.yml
37+
parameters:
38+
job_name: ci_documentation
39+
image_name: ubuntu-22.04
40+
python_versions: ['3.10']
41+
test_suites:
42+
all: make check_docs

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CUSTOM_PACKAGES=""
3131

3232
# Requirement arguments passed to pip and used by default or with --dev.
3333
REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/ --editable purl2vcs/ --editable . --constraint requirements.txt"
34-
DEV_REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/[testing] --editable .[testing] --editable purl2vcs/[testing] --constraint requirements.txt --constraint requirements-dev.txt"
34+
DEV_REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/[testing] --editable .[testing,docs] --editable purl2vcs/[testing] --constraint requirements.txt --constraint requirements-dev.txt"
3535
DOCS_REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/ --editable .[docs] --constraint requirements.txt"
3636

3737
# where we create a virtualenv

0 commit comments

Comments
 (0)