Skip to content

Commit

Permalink
Refactor build matrix to account for python 3.6 and pypy separately
Browse files Browse the repository at this point in the history
  • Loading branch information
EntilZha committed Feb 1, 2017
1 parent 56bd40d commit dd614f7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
34 changes: 22 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ before_install:
- pip install codecov
install:
- pip install -q coverage
- pip install git+https://github.com/PyCQA/pylint.git@7daed7b8982480c868b0f642a5251f00ffb253c6
- pip install git+https://github.com/PyCQA/astroid.git@d0b5acdfebcdda5c949584c32a8cbc0f31d5cf25
- pip install -r requirements.txt
- pip install $EXTRA_INSTALLS

notifications:
webhooks:
Expand All @@ -16,8 +13,9 @@ notifications:
on_failure: always
on_start: always
env:
- EXTRA_INSTALLS=pandas LINT=1
- EXTRA_INSTALLS= LINT=0
- PY_36=1 PYPY=0
- PY_36=0 PYPY=1
- PY_36=0 PYPY=0
python:
- "2.7"
- "3.3"
Expand All @@ -28,19 +26,31 @@ python:
matrix:
exclude:
- python: "pypy"
env: EXTRA_INSTALLS=pandas LINT=1
env: PY_36=1 PYPY=0
- python: "pypy"
env: PY_36=0 PYPY=0
- python: "2.7"
env: PY_36=1 PYPY=0
- python: "2.7"
env: EXTRA_INSTALLS= LINT=0
env: PY_36=0 PYPY=1
- python: "3.3"
env: PY_36=1 PYPY=0
- python: "3.3"
env: EXTRA_INSTALLS= LINT=0
env: PY_36=0 PYPY=1
- python: "3.4.4"
env: EXTRA_INSTALLS= LINT=0
env: PY_36=1 PYPY=0
- python: "3.4.4"
env: PY_36=0 PYPY=1
- python: "3.5"
env: PY_36=1 PYPY=0
- python: "3.5"
env: EXTRA_INSTALLS= LINT=0
env: PY_36=0 PYPY=1
- python: "3.6"
env: PY_36=0 PYPY=1
- python: "3.6"
env: EXTRA_INSTALLS= LINT=0
env: PY_36=0 PYPY=0

script: ./travis.sh
script: ./travis-lint.sh
after_success:
- codecov
cache: pip
14 changes: 12 additions & 2 deletions travis.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/usr/bin/env bash

if [[ $LINT ]]; then
nosetests --with-coverage --cover-package=functional && pylint functional
if [[ $PY_36 -eq 1 ]]; then
pip install git+https://github.com/PyCQA/pylint.git@7daed7b8982480c868b0f642a5251f00ffb253c6
pip install git+https://github.com/PyCQA/astroid.git@d0b5acdfebcdda5c949584c32a8cbc0f31d5cf25
else
pip install pylint
fi

if ! [[ $PYPY -eq 1 ]]; then
pip install pandas
fi

nosetests --with-coverage --cover-package=functional
pylint functional

0 comments on commit dd614f7

Please sign in to comment.