Skip to content

Commit

Permalink
bump codacy base orb
Browse files Browse the repository at this point in the history
  • Loading branch information
hjrocha committed Jul 23, 2024
1 parent a54b29e commit af29ed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
codacy: codacy/[email protected].1
codacy: codacy/[email protected].2

references:
circleci_job: &circleci_job
Expand Down Expand Up @@ -165,7 +165,6 @@ jobs:
command: |
brew install mockserver coreutils
export CODACY_REPORTER_TMP_FOLDER=".codacy-coverage"
export CODACY_REPORTER_SKIP_CHECKSUM=true
version=$(cat .version)
mkdir -p $CODACY_REPORTER_TMP_FOLDER/$version
cp $HOME/workdir/artifacts/codacy-coverage-reporter-darwin $CODACY_REPORTER_TMP_FOLDER/$version/codacy-coverage-reporter
Expand Down
8 changes: 4 additions & 4 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ download() {

download_file "$url"
checksum "$file_name" "$checksum_url"
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin x86_64" ]; then
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin arm64" ]; then
mv "$file_name" "$output_filename"
fi

cd "$original_folder"
}

download_reporter() {
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin x86_64" ]; then
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin arm64" ]; then
# OS name lower case
suffix=$(echo "$os_name" | tr '[:upper:]' '[:lower:]')
else
Expand Down Expand Up @@ -203,7 +203,7 @@ if [ -z "$CODACY_REPORTER_TMP_FOLDER" ]; then
fi

# Set binary name
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin x86_64" ]; then
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin arm64" ]; then
reporter_filename="codacy-coverage-reporter"
else
reporter_filename="codacy-coverage-reporter-assembly.jar"
Expand All @@ -220,7 +220,7 @@ reporter_path="$reporter_folder"/"$reporter_filename"

download_reporter "$reporter_path" "$reporter_folder" "$reporter_filename"

if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin x86_64" ]; then
if [ "$os_name_arch" = "Linux x86_64" ] || [ "$os_name_arch" = "Darwin arm64" ]; then
chmod +x "$reporter_path"
run_command="$reporter_path"
else
Expand Down

0 comments on commit af29ed5

Please sign in to comment.