summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rwxr-xr-xscripts/find-dead-symlinks7
2 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 19c924af..3160ccc2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
diff --git a/scripts/find-dead-symlinks b/scripts/find-dead-symlinks
new file mode 100755
index 00000000..b1dff84c
--- /dev/null
+++ b/scripts/find-dead-symlinks
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+[[ 0 == "$(find . -xtype l | wc -l)" ]] || {
+ echo >2 "DEAD SYMLINKS FOUND"
+ exit 1
+}
+