Add[CI]: combine experiments CRwq!
Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
@@ -1,29 +1,19 @@
|
|||||||
directories=$(find ./charts -maxdepth 1 -type d)
|
directories=$(find ../charts -maxdepth 1 -mindepth 1 -type d)
|
||||||
for directory in $directories
|
for directory in $directories
|
||||||
do
|
do
|
||||||
if [ $directory == "./charts" ]
|
subDirectories=$(find $directory -maxdepth 1 -mindepth 1 -type d)
|
||||||
then
|
echo -e "---\n" > $directory/experiments.yaml
|
||||||
continue
|
|
||||||
fi
|
|
||||||
subDirectories=$(find $directory -maxdepth 1 -type d)
|
|
||||||
for subDirectory in $subDirectories
|
for subDirectory in $subDirectories
|
||||||
do
|
do
|
||||||
if [ $subDirectory == $directory ]
|
|
||||||
then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
if test -f "$subDirectory/experiment.yaml"; then
|
if test -f "$subDirectory/experiment.yaml"; then
|
||||||
if test -f "$directory/experiments.yaml"; then
|
|
||||||
cat $subDirectory/experiment.yaml >> $directory/experiments.yaml
|
cat $subDirectory/experiment.yaml >> $directory/experiments.yaml
|
||||||
else
|
echo -e "\n---\n" >> $directory/experiments.yaml
|
||||||
cat $subDirectory/experiment.yaml > $directory/experiments.yaml
|
|
||||||
fi
|
|
||||||
echo -e "\n---\n" >> $directory/experiments.yaml
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
echo "validating combine charts for generic"
|
echo "validating combine charts for generic"
|
||||||
cat ./charts/generic/experiments.yaml
|
cat ../charts/generic/experiments.yaml
|
||||||
echo "validating combine charts for openebs"
|
echo "validating combine charts for openebs"
|
||||||
cat ./charts/openebs/experiments.yaml
|
cat ../charts/openebs/experiments.yaml
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user