From 7a0dac5afab7afc614612191bc7e3277c71e49e6 Mon Sep 17 00:00:00 2001 From: shubhamchaudhary Date: Thu, 3 Oct 2019 14:41:53 +0530 Subject: [PATCH] Add[CI]: Combine Experiments CR Signed-off-by: shubhamchaudhary --- .travis.yml | 1 + scripts/combine_all_cr.sh | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 34cdabe..f7d9bff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ script: # runs only when PR is merged - make versionmaker - make combineExpCR + - echo pwd 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 diff --git a/scripts/combine_all_cr.sh b/scripts/combine_all_cr.sh index 7b2f995..5861b64 100644 --- a/scripts/combine_all_cr.sh +++ b/scripts/combine_all_cr.sh @@ -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 do - echo -e "---\n" > ../charts/$directory/experiments.yaml - subDirectories=$(ls -l ../charts/$directory | grep ^d | awk '{print $9}') + echo -e "---\n" > ./charts/$directory/experiments.yaml + subDirectories=$(ls -l ./charts/$directory | grep ^d | awk '{print $9}') for subDirectory in $subDirectories do - cat ../charts/$directory/$subDirectory/experiment.yaml >> ../charts/$directory/experiments.yaml - echo -e "\n---\n" >> ../charts/$directory/experiments.yaml + cat ./charts/$directory/$subDirectory/experiment.yaml >> ./charts/$directory/experiments.yaml + echo -e "\n---\n" >> ./charts/$directory/experiments.yaml done done