Skip to content
Snippets Groups Projects
Unverified Commit a4b34abe authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #14373 from nextcloud/ci/noid/add-bundle-test

Add test for updated CA bundle
parents a48043f8 75337ff6
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ php ./build/translation-checker.php ...@@ -8,6 +8,8 @@ php ./build/translation-checker.php
RESULT=$(($RESULT+$?)) RESULT=$(($RESULT+$?))
php ./build/htaccess-checker.php php ./build/htaccess-checker.php
RESULT=$(($RESULT+$?)) RESULT=$(($RESULT+$?))
bash ./build/ca-bundle-checker.sh
RESULT=$(($RESULT+$?))
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
......
#!/usr/bin/env bash
echo
if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version\/noid\/.+ ]]; then
echo "Skip CA bundle check"
exit 0
fi
echo "Fetching latest ca-bundle.crt ..."
curl -o resources/config/ca-bundle.crt https://curl.haxx.se/ca/cacert.pem
echo
outdated=$(git diff --name-only | grep "resources/config/ca-bundle.crt")
if [ "${outdated}" = "resources/config/ca-bundle.crt" ]; then
echo "CA bundle is not up to date."
echo "Please run: bash build/ca-bundle-checker.sh"
echo "And commit the result"
exit 1
fi
echo "CA bundle is up to date."
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment