LoginSignup
4
6

More than 5 years have passed since last update.

CircleCIのコンテナの状態に左右されずにビルドツールをインストールする

Posted at
circle.yml
# ...
  dependencies:
    pre:
      # workaround for brew's bug https://github.com/Homebrew/homebrew/issues/45616
      - brew update || brew update
      - brew outdated xctool || brew upgrade xctool
      - xctool -v
      - >
        which carthage;
        if [ $? -eq "0" ]; then
          brew outdated carthage || brew upgrade carthage
        else
          brew install carthage
        fi
      - carthage version

carthageがインストールされててbrew outdatedの判定されれば -> brew upgrade
carthageがインストールされてなければ -> brew install

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6