[tor-commits] [fallback-scripts/master] Travis: Use the latest OS images

teor at torproject.org teor at torproject.org
Sun Dec 1 09:59:04 UTC 2019


commit 687fcb1369b4f55671470d392091183febc118da
Author: teor <teor at torproject.org>
Date:   Thu Nov 28 13:14:59 2019 +1000

    Travis: Use the latest OS images
    
    Use Ubuntu Bionic and macOS 10.14.
    
    Install Homebrew python at 2 in macOS
    macOS needs pip(2) to install fallback scripts dependencies.
    
    Part of 32632 and 28863.
---
 .travis.yml | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 929dfe3..6f0e624 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,8 +22,8 @@ matrix:
       python:
 
     ## Test all supported python releases
-    ## Pre-installed in Travis xenial:
-    ## https://docs.travis-ci.com/user/reference/xenial/#python-support
+    ## Pre-installed in Travis Bionic:
+    ## https://docs.travis-ci.com/user/reference/bionic/#python-support
     ## End of Life: 1 January 2020
     ## https://www.python.org/dev/peps/pep-0373/#id2
     - python: "2.7"
@@ -66,14 +66,24 @@ matrix:
   #allow_failures:
   #  - python: "3.7"
 
-## (Linux only) Use the Ubuntu Xenial Linux Image
-## deb.torproject.org doesn't support Trusty any more
-dist: xenial
+## (Linux only) Use a recent Linux image (Ubuntu Bionic)
+dist: bionic
 
-## (OSX only) Use the default OSX image
+## (OSX only) Use a recent macOS image
 ## See https://docs.travis-ci.com/user/reference/osx#os-x-version
-## Default is Xcode 9.4 on macOS 10.13 as of August 2018
-#osx_image: xcode9.4
+## Default is Xcode 9.4 on macOS 10.13 as of October 2019
+## Recent is Xcode 11.2 on macOS 10.14 as of October 2019
+osx_image: xcode11.2
+
+addons:
+  ## (macOS only)
+  homebrew:
+    packages:
+      ## macOS needs pip(2) from homebrew python
+      - python at 2
+    ## See ticket #30928 for more information. This key should be removed at
+    ## some point to speed up builds.
+    update: true
 
 install:
   ## We also need to install stem's dependencies





More information about the tor-commits mailing list