10000 feat: OS X testing (#154) · etherscan-io/sentry-python@cf7ce1c · GitHub
[go: up one dir, main page]

Skip to content

Commit cf7ce1c

Browse files
authored
feat: OS X testing (getsentry#154)
* feat: OS X testing * fix: Remove unused variable * fix: Download right semaphore bin * fix: Test on Python 2.7
1 parent 2d21404 commit cf7ce1c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ matrix:
3939
name: Build documentation
4040
install: f 8000 alse
4141
script: make travis-upload-docs
42+
- # The OS X VM doesn't have any Python support at all
43+
# See https://github.com/travis-ci/travis-ci/issues/2312
44+
os: osx
45+
name: OS X Python 2.7
46+
language: generic
47+
before_install:
48+
- brew install python@2
49+
- python2 -m pip install --user virtualenv
50+
- /Users/travis/Library/Python/2.7/bin/virtualenv $HOME/osx-py
51+
- source $HOME/osx-py/bin/activate
52+
- export TRAVIS_PYTHON_VERSION=2.7
53+
4254

4355
install:
4456
- pip install tox

scripts/download-semaphore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ output="$(
1414
echo "$output"
1515

1616
output="$(echo "$output" \
17-
| grep "Linux" \
17+
| grep "$(uname -s)" \
1818
| grep "download" \
1919
| cut -d : -f 2,3 \
2020
| tr -d , \

0 commit comments

Comments
 (0)
0