summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-03-22 14:29:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-03-22 14:29:31 +0100
commitd5231e63862bf11e02839c67a8a3297da09c5f29 (patch)
treedbca426eff94d5fba18e4849e4d51df638d15f0f
parent10ab36e2472ed6e4813c1e0f5972e10fc9fa1164 (diff)
Add CI script for finding dead symlinks
-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
+}
+