Skip to content
Permalink
Browse files

Cirrus: Add link checker build job

  • Loading branch information...
sanssecours committed May 5, 2019
1 parent b7a4814 commit f96fd825b4fa9e985d929ccf0b8eed8346aaed95
Showing with 39 additions and 0 deletions.
  1. +29 −0 .cirrus.yml
  2. +10 −0 scripts/docker/cirrus/Dockerfile
@@ -184,3 +184,32 @@ mac_task:
printf '. Please add the files shown above to `ElektraUninstall.cmake`.\n'
false
fi
linux_task:
matrix:

- name: 🔗 Check
container:
dockerfile: scripts/docker/cirrus/Dockerfile

script:
- mkdir build && cd build
- >
cmake -GNinja ..
-DBUILD_FULL=OFF
-DBUILD_SHARED=OFF
-DBUILD_STATIC=OFF
-DBUILD_TESTING=OFF
- cd ..
- ninja -C build 2>&1 | grep 'warning: invalid link' > broken_links.txt || true
- scripts/link-checker build/external-links.txt 2>> broken_links.txt > /dev/null

tests_script:
- |
if test -s broken_links.txt; then
printf >&2 'Broken Links:\n'
printf >&2 '—————————————\n'
cat >&2 broken_links.txt
printf >&2 '—————————————\n'
false
fi
@@ -0,0 +1,10 @@
FROM alpine:latest

RUN apk update \
&& apk add --no-cache \
build-base \
cmake \
doxygen \
git \
ninja \
wget

0 comments on commit f96fd82

Please sign in to comment.
You can’t perform that action at this time.