Skip to content

Commit 87bf3e3

Browse files
committed
Only attempt to install carthage if not already installed
1 parent 3a118ca commit 87bf3e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ env:
2222
- DESTINATION="platform=OS X,arch=x86_64" SDK="$MACOS_SDK" SCHEME="$MACOS_SCHEME"
2323
before_install:
2424
- brew update
25-
- brew install carthage
25+
- if brew list | grep -q carthage; then
26+
echo Carthage installed. Proceed without installing
27+
else
28+
echo Carthage not installed. Installing using homebrew
29+
brew install carthage
30+
fi
2631
- gem install cocoapods -v 1.0.0.beta.2
2732
install:
2833
- pod _1.0.0.beta.2_ install

0 commit comments

Comments
 (0)