Skip to content

Commit

Permalink
travis
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Aug 19, 2016
1 parent 80374c8 commit 9cfffd4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Expand Up @@ -57,12 +57,14 @@ matrix:
python: 2.7
env:
- PY=2
- PY_SUFFIX=

- os: osx
language: objective-c
python: 3.5
env:
- PY=3
- PY_SUFFIX=3


before_install:
Expand All @@ -73,11 +75,11 @@ before_install:
- cat /etc/hosts # optionally check the content *after*

- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY" != "2" ]]; then brew install python$PY; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python$PY; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY" == "3" ]]; then brew install python$PY_SUFFIX; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python$PY_SUFFIX; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi

- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dev || true ; fi
- pip install -U pip setuptools wheel
- pip install -r requirement.txt
Expand Down

0 comments on commit 9cfffd4

Please sign in to comment.