← Back to DAGDA | Support | Source: https://github.com/python/cpython/commit/d7687eb4b66c9f675b112eff1169326a1766c111
Skip to content

Commit d7687eb

Browse files
authored
bpo-31355: Travis-CI: re-enable macOS job (#5858)
The long build queues that plagued macOS builds on Travis seem to be a thing of the past now.
1 parent 5bd04f9 commit d7687eb

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

‎.travis.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ matrix:
5252
- python -m pip install sphinx~=1.6.1 blurb
5353
script:
5454
- make check suspicious html SPHINXOPTS="-q -W -j4"
55+
- os: osx
56+
language: c
57+
compiler: clang
58+
# Testing under macOS is optional until testing stability has been demonstrated.
59+
env: OPTIONAL=true
60+
before_install:
61+
# Python 3 is needed for Argument Clinic and multissl
62+
- brew install xz python3
63+
- export PATH=$(brew --prefix)/bin:$(brew --prefix)/sbin:$PATH
5564
- os: linux
5665
language: c
5766
compiler: gcc
@@ -76,9 +85,9 @@ before_install:
7685
- set -e
7786
- |
7887
# Check short-circuit conditions
79-
if [ "${TESTING}" != "docs" ]
88+
if [[ "${TESTING}" != "docs" ]]
8089
then
81-
if [ "$TRAVIS_PULL_REQUEST" = "false" ]
90+
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
8291
then
8392
echo "Not a PR, doing full build."
8493
else
@@ -101,7 +110,7 @@ before_install:
101110
install:
102111
- |
103112
# Install OpenSSL as necessary
104-
if [ "${TESTING}" != "docs" ]
113+
if [[ "${TESTING}" != "docs" ]]
105114
then
106115
# clang complains about unused-parameter a lot, redirect stderr
107116
python3 Tools/ssl/multissltests.py --steps=library \

‎Tools/scripts/smelly.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ def get_exported_symbols():
2727
def get_smelly_symbols(stdout):
2828
symbols = []
2929
ignored_symtypes = set()
30+
31+
allowed_prefixes = ('Py', '_Py')
32+
if sys.platform == 'darwin':
33+
allowed_prefixes += ('__Py',)
34+
3035
for line in stdout.splitlines():
3136
# Split line '0000000000001b80 D PyTextIOWrapper_Type'
3237
if not line:
@@ -47,7 +52,7 @@ def get_smelly_symbols(stdout):
4752
continue
4853

4954
symbol = parts[-1]
50-
if symbol.startswith(('Py', '_Py')):
55+
if symbol.startswith(allowed_prefixes):
5156
continue
5257
symbol = '%s (type: %s)' % (symbol, symtype)
5358
symbols.append(symbol)

0 commit comments

Comments
 (0)