Add CI script for finding dead symlinks

This commit is contained in:
Matthias Beyer 2018-03-22 14:29:31 +01:00
parent 10ab36e247
commit d5231e6386
2 changed files with 8 additions and 0 deletions

View file

@ -23,6 +23,7 @@ addons:
script:
- |
bash ./scripts/find-dead-symlinks || exit 1
bash ./scripts/license-headers-updated || exit 1
cargo build --all --all-features -j 1 || exit 1
cargo test --all --all-features -j 1 || exit 1

7
scripts/find-dead-symlinks Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
[[ 0 == "$(find . -xtype l | wc -l)" ]] || {
echo >2 "DEAD SYMLINKS FOUND"
exit 1
}