Skip to content

Commit

Permalink
[ci] Retry to install Carthage
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana-yan committed Nov 26, 2024
1 parent c8b8204 commit c8ce009
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,26 @@ jobs:
name: Install Carthage
command: |
sudo softwareupdate --install-rosetta --agree-to-license
curl -OL "https://github.com/Carthage/Carthage/releases/download/0.39.1/Carthage.pkg"
sudo installer -pkg Carthage.pkg -target /
max_retries=3
attempt=0
while (( attempt < max_retries )); do
((attempt++))
rm -rf Carthage.pkg
curl -OL "https://github.com/Carthage/Carthage/releases/download/0.39.1/Carthage.pkg"
sudo installer -pkg Carthage.pkg -target /
if [[ $? -eq 0 ]]; then
attempt = max_retries
echo "Carthage installed"
else
echo "Carthage installation failed on attempt $attempt"
fi
sleep 1
done
- run:
name: Test Integration via Carthage
command: Tests/Integration/test_carthage.sh
Expand Down

0 comments on commit c8ce009

Please sign in to comment.