Add CI for macOS

This commit is contained in:
Ivan Kravets
2016-08-09 10:30:21 +03:00
parent 239be03a54
commit 97c58c8dca

View File

@ -1,25 +1,36 @@
language: python language: python
python:
- "2.7"
env: matrix:
- TOX_ENV=docs include:
- TOX_ENV=lint - os: linux
- TOX_ENV=py27 sudo: required
python: 2.7
env: TOX_ENV=docs
- os: linux
sudo: required
python: 2.7
env: TOX_ENV=lint
- os: linux
sudo: required
python: 2.7
env: TOX_ENV=py27
- os: osx
language: generic
env: TOX_ENV=py27
install: install:
- git submodule update --init --recursive - git submodule update --init --recursive
- pip install -U pip setuptools tox - sudo pip install -U pip setuptools tox
# temporary hook to fix issue with gcc-pic32 # temporary hook to fix issue with gcc-pic32
- sudo apt-get install -qq lib32z1 lib32ncurses5 lib32bz2-1.0 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq lib32z1 lib32ncurses5 lib32bz2-1.0; fi
script: script:
- tox -e $TOX_ENV - tox -e $TOX_ENV
after_success: after_success:
- tox -e coverage - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tox -e coverage; fi
- bash <(curl -s https://codecov.io/bash) - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash <(curl -s https://codecov.io/bash); fi
notifications: notifications:
slack: slack: