diff --git a/scripts/check_mixedcontent.sh b/scripts/check_mixedcontent.sh new file mode 100755 index 0000000..9e50ae7 --- /dev/null +++ b/scripts/check_mixedcontent.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +SCANNER_VERSION="0.1" + +mkdir files +cd files +curl -LO "https://github.com/IIIF/phantomjs-mixed-content-scan/archive/$SCANNER_VERSION.tar.gz" +tar zxvf "$SCANNER_VERSION.tar.gz" +mv phantomjs-mixed-content-scan-$SCANNER_VERSION/* . +rmdir phantomjs-mixed-content-scan-$SCANNER_VERSION +./check_mixedcontent.sh ../_site +rm * +cd .. +rmdir files diff --git a/scripts/test.sh b/scripts/test.sh index dd653f1..9a1ba10 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,3 +4,5 @@ # bundle exec jekyll build bundle exec htmlproofer --check-html ./_site + +./scripts/check_mixedcontent.sh