Skip to content

Commit

Permalink
Changing the location of CaM sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Raleksan committed Sep 23, 2024
1 parent a6eb434 commit f44e8a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion steps/zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ if [ -e "${zip}" ]; then
exit
fi

cam_repo_target_dir="${TARGET}/github/self/${name}"
cam_repo_target_dir="${TARGET}/cam-sources"

if [ ! -d "${cam_repo_target_dir}" ]; then
git clone --depth 1 https://github.com/yegor256/cam.git "${cam_repo_target_dir}"
rm -rf "${cam_repo_target_dir}/.git"
fi

if [ -e "${TARGET}/github" ]; then
Expand Down
5 changes: 3 additions & 2 deletions tests/steps/test-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ echo "👍🏻 A zip archive generated correctly"
zip=${TARGET}/cam-$(date +%Y-%m-%d).zip
"${LOCAL}/steps/zip.sh"
list=$(unzip -l "${zip}")
echo "${list}" | grep "cam-*/" > /dev/null
echo "${list}" | grep "cam-sources/" > /dev/null
echo "${list}" | grep --invert-match "cam-sources/.git" > /dev/null
} > "${stdout}" 2>&1
echo "👍🏻 A zip archive contains the CaM repository"
echo "👍🏻 A zip archive contains the CaM repository (without .git)"

{
mkdir -p "${TARGET}/measurements/a/b/baam.m.cloc"
Expand Down

0 comments on commit f44e8a1

Please sign in to comment.