From 97c58c8dcace05c540ba443efbcbc684e171f2f2 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 9 Aug 2016 10:30:21 +0300 Subject: [PATCH] Add CI for macOS --- .travis.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 658547ab..8976ec8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,36 @@ language: python -python: - - "2.7" -env: - - TOX_ENV=docs - - TOX_ENV=lint - - TOX_ENV=py27 +matrix: + include: + - os: linux + 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: - 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 - - 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: - tox -e $TOX_ENV after_success: - - tox -e coverage - - bash <(curl -s https://codecov.io/bash) + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tox -e coverage; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash <(curl -s https://codecov.io/bash); fi notifications: slack: