Skip to content

Commit

Permalink
travis: add osx
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Sep 7, 2016
1 parent fa6078f commit 3139aec
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,29 @@ matrix:
sudo: required
dist: trusty
env: TYPE="windows" PYVER="3.4.4" PYARGS="-R -bb"
- os: osx
language: generic
env: TYPE="osx" PYVER="3" PYARGS="-R -bb"
- os: osx
language: generic
env: TYPE="osx" PYVER="2" PYARGS="-R"

install:
- if [ "$TYPE" == "windows" ]; then sudo dpkg --add-architecture i386; fi
- if [ "$TYPE" == "windows" ]; then sudo add-apt-repository -y ppa:ubuntu-wine/ppa; fi
- if [ "$TYPE" == "windows" ]; then travis_retry sudo apt-get update -q; fi
- if [ "$TYPE" == "windows" ]; then travis_retry sudo apt-get install --no-install-recommends -y wine1.8 xvfb; fi
- if [ "$TYPE" == "linux" ]; then travis_retry sudo apt-get install --no-install-recommends -y python3-pytest python-pytest; fi
- if [ "$TYPE" == "osx" ]; then brew update; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "3" ]; then brew install python3; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "3" ]; then virtualenv venv -p python3; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "2" ]; then brew install python; fi
- if [ "$TYPE" == "osx" ] && [ "$PYVER" == "2" ]; then virtualenv venv -p python; fi
- if [ "$TYPE" == "osx" ]; then source venv/bin/activate; fi
- if [ "$TYPE" == "osx" ]; then python -m pip install pytest; fi

script:
- if [ "$TYPE" == "linux" ]; then eval python $PYARGS -m pytest tests; fi
- if [ "$TYPE" == "linux" ]; then LANG=C eval python $PYARGS -m pytest tests; fi
- if [ "$TYPE" == "windows" ]; then eval xvfb-run -a ./run_wine.sh "$PYVER" python $PYARGS -m pytest tests; fi
- if [ "$TYPE" == "osx" ]; then eval python $PYARGS -m pytest tests; fi

0 comments on commit 3139aec

Please sign in to comment.