From 99910060f921147ecca442f925797c44b3907ddc Mon Sep 17 00:00:00 2001 From: richelbilderbeek Date: Fri, 18 Aug 2023 09:45:23 +0200 Subject: [PATCH] Bye Travis --- .travis.yml | 12 ------------ scripts/check_dead_links | 18 ------------------ 2 files changed, 30 deletions(-) delete mode 100644 .travis.yml delete mode 100755 scripts/check_dead_links diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d46def2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -dist: bionic - -install: - # Check dead links - - sudo apt-get install -qq npm - - npm config set strict-ssl false - - sudo npm install -g markdown-link-check - -script: - # Check dead links - - rm .travis.yml - - ./scripts/check_dead_links diff --git a/scripts/check_dead_links b/scripts/check_dead_links deleted file mode 100755 index 206da9a..0000000 --- a/scripts/check_dead_links +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -# Collect all dead links in a file -find . -name \*.md -exec markdown-link-check {} \; 2>/dev/null | egrep "[✖]" > broken.txt - -# Count the number of lines, extract only that number -n_broken=$(wc broken.txt --lines | cut -f 1 -d " ") - -if [[ $n_broken > 0 ]] -then - echo "Number of broken files: "$n_broken - cat broken.txt - rm broken.txt - exit $n_broken -fi - -rm broken.txt -