Parcourir la source

CI: OSX set fixed hostname to avoid discovery_multicast failure

Stefan Profanter il y a 5 ans
Parent
commit
b92e0a8b77
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      .travis.yml

+ 4 - 0
.travis.yml

@@ -223,6 +223,10 @@ matrix:
 # OSX clang build
     - os: osx
       compiler: clang
+      # OSX may have different hostnames between processes, which causes multicast unit test to fail.
+      # Hardcode the hostname here
+      addons:
+        hostname: travis-osx
       # disable homebrew auto update which takes a lot of time
       env: HOMEBREW_NO_AUTO_UPDATE=1
       cache: