travis: run tests on macOS

closes #3892
This commit is contained in:
Jiri Kuncar 2018-08-27 16:13:43 +02:00
parent ab5af524a4
commit f786335dbb
No known key found for this signature in database
GPG Key ID: E734A642BEA9BF0B
1 changed files with 19 additions and 0 deletions

View File

@ -44,6 +44,25 @@ jobs:
python: '3.7'
sudo: required
dist: xenial
- &test-macos
language: generic
os: osx
osx_image: xcode9.4
sudo: required
env: TOXENV=py27
install:
- python -m pip install --upgrade --pre tox
- <<: *test-macos
env: TOXENV=py36
install:
- python3 -m pip install --upgrade --pre tox
- <<: *test-macos
env: TOXENV=py37
before_install:
- brew update
- brew upgrade python
- brew unlink python
- brew link python
- stage: deploy
python: '3.6'