Commit f464b981 authored by David Hrbáč's avatar David Hrbáč

CI 404s test

parent 2fbc1739
......@@ -2,6 +2,7 @@ stages:
- test
- build
- deploy
- after_test
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
......@@ -41,25 +42,11 @@ ext_links:
- master
404s:
stage: test
stage: after_test
image: davidhrbac/docker-mkdocscheck:latest
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt
- set +e
- mkdocs build
- "mkdocs serve &"
script:
- wget --spider -o /tmp/wget.log -e robots=off -r -p http://127.0.0.1:8000
- wget --spider -o /tmp/wget.log -e robots=off -r -p https://docs.it4i.cz/devel/$CI_BUILD_REF_NAME/:8000
- sed -n '/^Found .* broken links.$/,$p' /tmp/wget.log
- cat /tmp/wget.log
mkdocs:
stage: build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment