Skip to content

Commit

Permalink
reconfigure travis script matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaoming committed Jan 25, 2016
1 parent 85ef489 commit 7788873
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,27 @@ python:
- "3.4"
- "3.5"
- "2.7"
- "docs"
- "bdd"
# pypy testing currently breaks because of the tempfile dir used for KALITE_HOME
# - "pypy"

matrix:
include:
- python: "2.7"
env: TOX_ENV=py2.7
env: TOX_ENV=docs
env: TOX_ENV=bdd
- python: "3.4"
env: TOX_ENV=py3.4
- python: "3.5"
env: TOX_ENV=py3.5

before_install:
- pip install codecov
- pip install tox

before_script:
- tox -e lint

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- TOX_ENV=py${TRAVIS_PYTHON_VERSION}

# command to run tests, e.g. python setup.py test
script:
- tox -e $TOX_ENV
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ basepython =
py2.7: python2.7
py3.4: python3.4
py3.5: python3.5
pypypy: pypy
pydocs: python2.7
pypy: pypy
docs: python2.7
lint: python
pybdd: python2.7
bdd: python2.7
deps =
-r{toxinidir}/requirements/test.txt
commands =
Expand All @@ -21,15 +21,15 @@ deps =
commands =
flake8 kolibri

[testenv:pydocs]
[testenv:docs]
changedir=docs/
deps =
-r{toxinidir}/requirements/docs.txt
commands =
sphinx-build -b linkcheck ./ _build/
# sphinx-build -b html ./ _build/

[testenv:pybdd]
[testenv:bdd]
deps =
-r{toxinidir}/requirements/bdd.txt
commands =
Expand Down

0 comments on commit 7788873

Please sign in to comment.