Browse Source

Fix Travis not finding !ProtoCompiler-gRPC.podspec

Jorge Canizales 9 năm trước cách đây
mục cha
commit
76628706ac
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      .travis.yml

+ 3 - 0
.travis.yml

@@ -34,10 +34,13 @@ env:
       TEST_PATH="src/objective-c/examples/SwiftSample" BUILD_ONLY="true"
       TEST_PATH="src/objective-c/examples/SwiftSample" BUILD_ONLY="true"
       INTEROP_SERVER="false"
       INTEROP_SERVER="false"
 before_install:
 before_install:
+  # Until Travis upgrades from Cocoapods 0.39, we need to do it here.
   - pod --version
   - pod --version
   - gem uninstall cocoapods -a
   - gem uninstall cocoapods -a
   - gem install cocoapods -v '1.0.1'
   - gem install cocoapods -v '1.0.1'
   - pod --version
   - pod --version
+  # Recent pods aren't found if we don't explicitly update Cocoapods' repo.
+  - pod repo update
   - brew install gflags
   - brew install gflags
 install:
 install:
   - pushd $TEST_PATH
   - pushd $TEST_PATH