]> granicus.if.org Git - python/commitdiff
[2.7] Turn on macOS builds for Travis (GH-1846) (GH-1931)
authorBrett Cannon <brettcannon@users.noreply.github.com>
Sat, 3 Jun 2017 17:38:43 +0000 (10:38 -0700)
committerGitHub <noreply@github.com>
Sat, 3 Jun 2017 17:38:43 +0000 (10:38 -0700)
Initially the macOS builds are allowed to fail until such time that they can be determined to be stable and not add an unacceptable amount of time to the overall Travis-passing process.
(cherry picked from commit 21c2dd7cf8414c903f0e83cf1d6b7f02f645f422)

.travis.yml

index 209c8a63fa4b7afc222ba5535bdf05129e6383d8..5bb4ce6f365b76d4b8c57f59bba9f6fa16f11e7c 100644 (file)
@@ -12,19 +12,26 @@ branches:
     - /^\d\.\d$/
 
 matrix:
+  fast_finish: true
+  allow_failures:
+    - env: OPTIONAL=true
   include:
     - os: linux
       language: c
       compiler: clang
       # gcc also works, but to keep the # of concurrent builds down, we use one C
-      # compiler here and the other to run the coverage build.
-      env:
-        - TESTING=cpython
+      # compiler here and the other to run the coverage build. Clang is preferred
+      # in this instance for its better error messages.
+      env: TESTING=cpython
+    - os: osx
+      language: c
+      compiler: clang
+      # Testing under macOS is optional until testing stability has been demonstrated.
+      env: OPTIONAL=true
     - os: linux
       language: python
       python: 2.7
-      env:
-        - TESTING=docs
+      env: TESTING=docs
       before_script:
         - cd Doc
         # Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.