Merge branch 'master' into pool-failure

This commit is contained in:
shubhamchaudhary
2019-10-03 21:58:19 +05:30
4 changed files with 28 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ dist: xenial # ubuntu 16.04 distro
script:
# runs only when PR is merged
- make versionmaker
- make combineExpCR
after_success:
# runs only when PR is merged and push the version file to master version
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then make push; fi

View File

@@ -6,6 +6,11 @@ versionmaker:
@echo "-----version maker-----"
bash ./scripts/version_maker.sh
.PHONY: combineExpCR
combineExpCR:
@echo "--------Combining Experiments CR-------"
bash ./scripts/combine_all_cr.sh
.PHONY: push
push:
@echo "---------git push to master-------"

View File

@@ -1,3 +1,3 @@
# community-charts
Repository to hold chaos experiments resource YAML bundles. These charts can be installed via charts.litmuschaos.io
# chaos-charts
This repository hosts the Litmus Chaos Charts.

19
scripts/combine_all_cr.sh Normal file
View File

@@ -0,0 +1,19 @@
directories=$(find ./charts -maxdepth 1 -mindepth 1 -type d)
for directory in $directories
do
subDirectories=$(find $directory -maxdepth 1 -mindepth 1 -type d)
echo -e "---\n" > $directory/experiments.yaml
for subDirectory in $subDirectories
do
if test -f "$subDirectory/experiment.yaml"; then
cat $subDirectory/experiment.yaml >> $directory/experiments.yaml
echo -e "\n---\n" >> $directory/experiments.yaml
fi
done
done
echo "validating combine charts for generic"
cat ./charts/generic/experiments.yaml
echo "validating combine charts for openebs"
cat ./charts/openebs/experiments.yaml