Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
added link checker step
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Apr 26, 2019
1 parent 4dced61 commit 95a5f51
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

jobs:
build:
tests:
docker:
- image: python:3.6-alpine3.9
steps:
Expand All @@ -17,6 +17,23 @@ jobs:
pip install -r requirements.txt
mkdocs build --clean --site-dir _build/html --config-file ./mkdocs.yml
- run:
name: serve
background: true
command: |
source bin/activate
mkdocs serve
- run:
name: check links
command: |
pip install pylinkvalidator html5lib
sed -i -e 's/\(decode("ascii")\)/\1.replace(" ", "%20")/g' /usr/local/lib/python3.6/site-packages/pylinkvalidator/urlutil.py
pylinkvalidate.py --parser=html5lib -P http://localhost:8000
spellCheck:
docker:
Expand All @@ -31,9 +48,9 @@ jobs:
workflows:
version: 2
test_and_deploy:
build_and_tests:
jobs:
- build:
- tests:
filters:
tags:
only: /.*/
Expand Down

0 comments on commit 95a5f51

Please sign in to comment.