Explorar o código

[TravisCI] use brew bundle to install brew formulae

It avoids getting "xxx already installed" error.
Andy Li %!s(int64=8) %!d(string=hai) anos
pai
achega
74f78bc279
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 2 2
      .travis.yml
  2. 6 0
      tests/Brewfile

+ 2 - 2
.travis.yml

@@ -129,8 +129,8 @@ install_osx: &install_osx
   # Install dependencies
   - travis_retry brew update --merge
   - brew uninstall --force brew-cask # https://github.com/caskroom/homebrew-cask/pull/15381
-  - travis_retry brew install opam ninja zlib pcre awscli;
-  - brew outdated cmake || brew upgrade cmake # we need a recent cmake to use CMAKE_OSX_DEPLOYMENT_TARGET
+  - travis_retry brew tap Homebrew/bundle
+  - travis_retry brew bundle --file=tests/Brewfile
   - export OPAMYES=1
   - opam init
   - opam install camlp4 sedlex ocamlfind xml-light extlib rope ptmap

+ 6 - 0
tests/Brewfile

@@ -0,0 +1,6 @@
+brew "opam"
+brew "ninja"
+brew "zlib"
+brew "pcre"
+brew "awscli"
+brew "cmake"