Skip to content

Commit

Permalink
Fixes Travis CI builds (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Jun 20, 2016
1 parent 1ac80b5 commit 4feb252
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .travis.yml
@@ -1,21 +1,41 @@
sudo: false

language: python

matrix:
include:
- os: linux
python: "2.7"
python: 2.6
env: TOXENV=py26
- os: linux
python: 2.7
env: TOXENV=py27
- os: linux
python: 3.3
env: TOXENV=py33
- os: linux
python: 3.4
env: TOXENV=py34
- os: linux
python: 3.5
env: TOXENV=py35
- os: linux
python: pypy
env: TOXENV=pypy
- os: osx
language: generic
env: TOXENV=py27
- os: osx
language: generic
env: TOXENV=py35
- os: osx
python: "2.7"
language: generic
env: TOXENV=pypy
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pypy ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3 ; fi
- ./.travis/install.sh
install:
- pip install pytest
- pip install coveralls
- pip install pytest-cov
- python setup.py install
- pip install -r requirements-test.txt
- pip install -e .
script: python setup.py test
after_success:
- coveralls
Expand Down
15 changes: 15 additions & 0 deletions .travis/install.sh
@@ -0,0 +1,15 @@
#!/bin/bash

if [[ $TRAVIS_OS_NAME == "osx" ]]; then
case "${TOXENV}" in
py27)
brew install python
;;
py35)
brew install python3
;;
pypy)
brew install pypy
;;
esac
fi
3 changes: 3 additions & 0 deletions requirements-test.txt
@@ -0,0 +1,3 @@
pytest
coveralls
pytest-cov

0 comments on commit 4feb252

Please sign in to comment.