]> granicus.if.org Git - pdns/commitdiff
travis: complain about dangling symlinks
authorJosh Soref <jsoref@users.noreply.github.com>
Fri, 5 Oct 2018 03:42:59 +0000 (23:42 -0400)
committerJosh Soref <jsoref@users.noreply.github.com>
Fri, 5 Oct 2018 03:42:59 +0000 (23:42 -0400)
build-scripts/travis.sh

index a7b6a4b82b7becfc0d7b92435da2b9b640c80e8c..4b9eaa97ad479c56e5549e49f99a768839fe0cce 100755 (executable)
@@ -384,6 +384,10 @@ install_dnsdist() {
   run "sudo chmod 0755 /var/agentx"
 }
 
+check_for_dangling_symlinks() {
+  run '! find -L . -name missing-sources -prune -o ! -name pubsuffix.cc -type l | grep .'
+}
+
 build_auth() {
   run "autoreconf -vi"
   run "./configure \
@@ -422,6 +426,9 @@ build_ixfrdist() {
 
 build_recursor() {
   export PDNS_RECURSOR_DIR=$HOME/pdns_recursor
+  run "cd pdns/recursordist"
+  check_for_dangling_symlinks
+  run "cd ../.."
   # distribution build
   run "./build-scripts/dist-recursor"
   run "cd pdns/recursordist"
@@ -442,6 +449,9 @@ build_recursor() {
 }
 
 build_dnsdist(){
+  run "cd pdns/dnsdistdist"
+  check_for_dangling_symlinks
+  run "cd ../.."
   run "./build-scripts/dist-dnsdist"
   run "cd pdns/dnsdistdist"
   run "tar xf dnsdist*.tar.bz2"