我正在更新travis-ci
自制水龙头brew test-bot
的测试,但失败并出现错误:
Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.
我得到了正确的环境softwareupdate
,但想知道是否有办法绕过这个,直到新版本不在 Travis 的 VM 映像中?
- .yml 文件:
os: osx
language: c
compiler: clang
osx_image: xcode10.1
cache:
directories:
- /usr/local/Homebrew/Library/Homebrew/vendor/bundle
before_install:
- softwareupdate --install -a
- sudo chown -R "$USER" "$(brew --repo)"
- travis_retry brew update
- HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
- mkdir -p "$HOMEBREW_TAP_DIR"
- rm -rf "$HOMEBREW_TAP_DIR"
- ln -s "$PWD" "$HOMEBREW_TAP_DIR"
script:
- brew test-bot
- brew cask audit ./Casks/*.rb
- brew cask install -v ./Casks/*.rb
还注意到该brew tap-new
模板现在使用 Azure 管道而不是 Travis