]> granicus.if.org Git - python/commitdiff
Combine the C++ header CI build into the main C build (GH-697) (GH-705)
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 17 Mar 2017 22:41:48 +0000 (15:41 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2017 22:41:48 +0000 (15:41 -0700)
This will eliminate one of the builds in Travis, allowing for CI overall to complete faster.
(cherry picked from commit 993d4b3440f2282976901ce66879037c4443868a)

.travis.yml

index 27b63c6c08b37645d38c029a961bac2a0bd7ab68..36961e38790a4d7e1e2251b2e93e7f4d379194bf 100644 (file)
@@ -64,15 +64,6 @@ matrix:
         # Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
         - source ./venv/bin/activate
         - bash <(curl -s https://codecov.io/bash)
-    - os: linux
-      language: cpp
-      compiler: clang
-      env:
-        - TESTING="C++ header compatibility"
-      before_script:
-        - ./configure
-      script:
-        - echo '#include "Python.h"' > test.cc && $CXX -c test.cc -o /dev/null -I ./Include -I .
 
 # Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
 before_script:
@@ -88,6 +79,8 @@ before_script:
 script:
   # `-r -w` implicitly provided through `make buildbottest`.
   - make buildbottest TESTOPTS="-j4"
+  # Test for C++ header compatibility.
+  - echo '#include "Python.h"' > test.cc && $CXX -c test.cc -o /dev/null -I ./Include -I .
 
 notifications:
   email: false