Skip to content
Permalink
Browse files

Fixes Travis CI builds (#167)

  • Loading branch information
prologic committed Jun 20, 2016
1 parent 1ac80b5 commit 4feb252cb23e8b73281e683e27b99e8909371a81
Showing with 48 additions and 10 deletions.
  1. +30 −10 .travis.yml
  2. +15 −0 .travis/install.sh
  3. +3 −0 requirements-test.txt
@@ -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
@@ -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
@@ -0,0 +1,3 @@
pytest
coveralls
pytest-cov

0 comments on commit 4feb252

Please sign in to comment.
You can’t perform that action at this time.