Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

[do not merge] Testing mdcheckr to check Markdown files for dead links #97

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
language: rust

addons:
apt:
packages:
- pandoc
- libxml2-utils

matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -43,6 +49,7 @@ before_install: set -e
install:
- bash ci/install.sh
- export PATH="$PATH:$PWD/gcc/bin"
- export PATH="$PATH:$PWD/mdcheck"

script:
- bash ci/script.sh
Expand Down
4 changes: 4 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ main() {
mkdir gcc

curl -L https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2?revision=bc2c96c0-14b5-4bb4-9f18-bceb4050fee7?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2018-q2-update | tar --strip-components=1 -C gcc -xj

mkdir mdcheck
curl https://raw.githubusercontent.com/korken89/mdcheckr/master/mdcheckr -o mdcheck/mdcheckr
chmod +x mdcheck/mdcheckr
}

main
3 changes: 3 additions & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ main() {

if [ $TARGET = x86_64-unknown-linux-gnu ]; then
./check-blobs.sh

# Check docs
find . -name '*.md' -print0 | xargs -0 mdcheckr
fi
}

Expand Down