mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
16 lines
610 B
Bash
16 lines
610 B
Bash
|
|
||
|
while read APP;
|
||
|
do
|
||
|
APPNAME=$(echo $APP | awk '{print $1}')
|
||
|
echo $APPNAME
|
||
|
wget -O data/$APPNAME "https://ci-apps.yunohost.org/jenkins/job/$APP/lastBuild/consoleText"
|
||
|
|
||
|
CHECKS=$(cat data/$APPNAME | grep "Package linter:" -A15 | tail -n 16 | sed -e 's/FAIL/0/g' -e 's/SUCCESS/1/g' -e 's/Not evaluated./X/' | awk '{print $NF}' | tr -d '\n')
|
||
|
LEVELS=$(cat data/$APPNAME | grep 'Level of this application' -A10 | tail -n 11 | sed -e 's@N/A@X@g' -e 's/ Level //g' -e 's/Level of this application//g' | awk '{print $2}' | tr -d '\n')
|
||
|
|
||
|
echo $CHECKS > data/$APPNAME
|
||
|
echo $LEVELS >> data/$APPNAME
|
||
|
|
||
|
done < apps
|
||
|
|