Add[CI]: Combine Experiments CR

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
shubhamchaudhary
2019-10-03 14:41:53 +05:30
parent 9f2242ef71
commit 7a0dac5afa
2 changed files with 6 additions and 5 deletions

View File

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

View File

@@ -1,12 +1,12 @@
directories=$(ls -l ../charts/ | grep ^d | awk '{print $9}') directories=$(ls -l ./charts/ | grep ^d | awk '{print $9}')
for directory in $directories for directory in $directories
do do
echo -e "---\n" > ../charts/$directory/experiments.yaml echo -e "---\n" > ./charts/$directory/experiments.yaml
subDirectories=$(ls -l ../charts/$directory | grep ^d | awk '{print $9}') subDirectories=$(ls -l ./charts/$directory | grep ^d | awk '{print $9}')
for subDirectory in $subDirectories for subDirectory in $subDirectories
do do
cat ../charts/$directory/$subDirectory/experiment.yaml >> ../charts/$directory/experiments.yaml cat ./charts/$directory/$subDirectory/experiment.yaml >> ./charts/$directory/experiments.yaml
echo -e "\n---\n" >> ../charts/$directory/experiments.yaml echo -e "\n---\n" >> ./charts/$directory/experiments.yaml
done done
done done