Skip to content

Commit

Permalink
adding fecth script
Browse files Browse the repository at this point in the history
  • Loading branch information
savitharaghunathan committed Feb 15, 2024
1 parent f406b06 commit 3b9ea31
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 8 additions & 4 deletions samples/analyze_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"sample_repos/ticket-monster": "ticket-monster",
"sample_repos/jboss-eap-quickstarts/kitchensink": "kitchensink",
"sample_repos/jboss-eap-quickstarts/helloworld-mdb": "helloworld-mdb",
"sample_repos/jboss-eap-quickstarts/bmt": "bmt",
"sample_repos/jboss-eap-quickstarts/cmt": "cmt",
"sample_repos/bmt": "bmt",
"sample_repos/cmt": "cmt",
"sample_repos/jboss-eap-quickstarts/ejb-remote": "ejb-remote",
"sample_repos/jboss-eap-quickstarts/ejb-security": "ejb-security",
"sample_repos/jboss-eap-quickstarts/tasks-jsf": "tasks-jsf",
Expand All @@ -25,13 +25,17 @@ def ensure_kantra_bin_exists():

def ensure_output_dir_exists(output_dir):
if not os.path.isdir(output_dir):
os.mkdir(output_dir)
print(f"Creating output directory '{output_dir}'")
# os.mkdir(output_dir)
os.makedirs(output_dir)


def analyze_all():
ensure_kantra_bin_exists()
for source_dir, output_dir in sample_source_apps.items():
full_output_dir = os.path.join(os.getcwd(), f"analysis_reports/{output_dir}")
full_output_dir = os.path.join(
os.getcwd(), f"analysis_reports/{output_dir}/solved"
)
ensure_output_dir_exists(full_output_dir)
print(f"Analyzing '{source_dir}', will write output to '{full_output_dir}'")
cmd = f'time ./bin/kantra analyze -i {source_dir} -t "quarkus" -t "jakarta-ee" -t "jakarta-ee8+" -t "jakarta-ee9+" -t "cloud-readiness" -o {full_output_dir} --overwrite'
Expand Down
10 changes: 10 additions & 0 deletions samples/fetch_sample_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,14 @@ cd helloworld-mdb-quarkus || exit
git checkout quarkus
cd ..

git clone https://github.com/konveyor-ecosystem/bmt.git bmt
cd bmt || exit
git checkout quarkus
cd ..

git clone https://github.com/konveyor-ecosystem/cmt.git cmt
cd bmt || exit
git checkout quarkus
cd ..

popd || exit

0 comments on commit 3b9ea31

Please sign in to comment.