Skip to content

Commit

Permalink
ci: Test on macOS
Browse files Browse the repository at this point in the history
Test on macOS. Testing on macOS should
allow us to catch C++ ABI issues.
  • Loading branch information
riddell-stan committed Nov 7, 2020
1 parent c4a6f68 commit 4d2325b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,25 @@ dist: focal
jobs:
- python: 3.7
- python: 3.8

- os: osx
osx_image: xcode12.2
language: generic

cache: pip
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
python3 -m venv venv
source venv/bin/activate
fi
- python --version
install:
- pip install "poetry<2,>=1.0" tox
script:
# run style checks on linux, Python 3.8 or higher
- |
if [[ $TRAVIS_PYTHON_VERSION != "3.7" ]]; then
tox
if [[ $TRAVIS_PYTHON_VERSION != "3.7" && $TRAVIS_OS_NAME != "osx" ]]; then
tox || travis_terminate 1
fi
- poetry install -v && poetry run pytest -s -v tests

0 comments on commit 4d2325b

Please sign in to comment.