Add CI script for finding dead symlinks
This commit is contained in:
parent
10ab36e247
commit
d5231e6386
2 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,7 @@ addons:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
|
bash ./scripts/find-dead-symlinks || exit 1
|
||||||
bash ./scripts/license-headers-updated || exit 1
|
bash ./scripts/license-headers-updated || exit 1
|
||||||
cargo build --all --all-features -j 1 || exit 1
|
cargo build --all --all-features -j 1 || exit 1
|
||||||
cargo test --all --all-features -j 1 || exit 1
|
cargo test --all --all-features -j 1 || exit 1
|
||||||
|
|
7
scripts/find-dead-symlinks
Executable file
7
scripts/find-dead-symlinks
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[[ 0 == "$(find . -xtype l | wc -l)" ]] || {
|
||||||
|
echo >2 "DEAD SYMLINKS FOUND"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue