Commit 570ca8b0 authored by da-woods's avatar da-woods Committed by Stefan Behnel

Fix "common_include_dir" test on OS X on Travis (GH-3893)

Also turn off the clang warning about deprecated declarations to try to reduce the size of the OSX logs.
parent 560f512c
......@@ -75,25 +75,25 @@ matrix:
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: BACKEND=cpp
- python: 3.9-dev
- python: 3.9
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: BACKEND=c
- python: 3.9-dev
- python: 3.9
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: BACKEND=cpp
- os: osx
osx_image: xcode6.4
env: PY=2
python: 2
python: 2.7
language: c
compiler: clang
cache: false
- os: osx
osx_image: xcode6.4
env: PY=3
python: 3
osx_image: xcode10.3
env: PY=3 MACOSX_DEPLOYMENT_TARGET=10.9
python: 3.9
language: c
compiler: clang
cache: false
......@@ -106,7 +106,6 @@ matrix:
- env: STACKLESS=true BACKEND=c PY=3
python: 3.6
allow_failures:
- python: 3.9-dev
- python: pypy
- python: pypy3
......@@ -136,8 +135,8 @@ before_install:
conda --version || exit 1
#conda install --quiet --yes nomkl --file=test-requirements.txt --file=test-requirements-cpython.txt
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
which clang && clang --version && export CC=clang || true
which clang++ && clang++ --version && export CXX=clang++ || true
which clang && clang --version && export CC="clang -Wno-deprecated-declarations" || true
which clang++ && clang++ --version && export CXX="clang++ -stdlib=libc++ -Wno-deprecated-declarations" || true
fi
fi
......
......@@ -16,13 +16,18 @@ PYTHON fake_grep.py -c '#include "common/AddTraceback_impl_.*h"' c.c
import sys
from Cython.Build.Dependencies import cythonize
import platform
import os
from distutils.core import setup
# os x on Travis specifically seems to crash with nthreads>0
osx_on_travis = (platform.system() == "Darwin" and os.getenv("TRAVIS"))
# Test concurrent safety if multiprocessing is available.
# (In particular, TravisCI does not support spawning processes from tests.)
nthreads = 0
if not hasattr(sys, 'pypy_version_info'):
if not (hasattr(sys, 'pypy_version_info') or osx_on_travis):
try:
import multiprocessing
multiprocessing.Pool(2).close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment