mirror of
https://github.com/placeholder-soft/asdf-plugins.git
synced 2026-04-24 03:55:07 +08:00
simplify based on PR feedback
This commit is contained in:
4
test.sh
4
test.sh
@@ -6,9 +6,7 @@ while read -r -a plugin; do
|
||||
total=$((total+1))
|
||||
travis_web_url="https://${plugin[0]}/${plugin[1]}"
|
||||
url="https://api.${plugin[0]}/repos/${plugin[1]}/branches/${plugin[2]}"
|
||||
curl -sq -H 'Accept: application/vnd.travis-ci.2.1+json' ${url} | grep '"state":"passed"' &> /dev/null
|
||||
status=$?
|
||||
if [[ ${status} != 0 ]]; then
|
||||
if ! curl -sq -H 'Accept: application/vnd.travis-ci.2.1+json' ${url} | grep -q '"state":"passed"'; then
|
||||
fails=$((fails+1))
|
||||
echo "Plugin build check failed: ${travis_web_url}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user