File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,18 @@ matrix:
33
33
- tox --installpkg ./dist/djangorestframework-*.whl
34
34
- tox # test sdist
35
35
36
+ - python : " 3.7"
37
+ env : DOCS=links
38
+ script :
39
+ - pip install -r requirements/requirements-documentation.txt
40
+ - mkdocs serve &
41
+ - WAIT_TIME=0 && until nc -vzw 2 localhost 8000 || [ $WAIT_TIME -eq 5 ]; do sleep $(( WAIT_TIME++ )); done
42
+ - if [ $WAIT_TIME == 5 ]; then echo cannot start mkdocs server on http://localhost:8000; exit 1; fi
43
+ - pylinkvalidate.py -P http://localhost:8000/
44
+
36
45
allow_failures :
37
46
- env : DJANGO=master
47
+ - env : DOCS=links
38
48
39
49
install :
40
50
- pip install tox tox-venv tox-travis
Original file line number Diff line number Diff line change 1
1
# MkDocs to build our documentation.
2
2
mkdocs==1.0.4
3
+
4
+ # pylinkvalidator to check for broken links in documentation.
5
+ pylinkvalidator==0.3
You can’t perform that action at this time.
0 commit comments