From d5231e63862bf11e02839c67a8a3297da09c5f29 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 22 Mar 2018 14:29:31 +0100 Subject: [PATCH] Add CI script for finding dead symlinks --- .travis.yml | 1 + scripts/find-dead-symlinks | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 scripts/find-dead-symlinks 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 +} +