Skip to content

Commit

Permalink
Add a travis configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Walter Scheper <Walter.Scheper@sas.com>
  • Loading branch information
wfscheper committed Sep 14, 2017
1 parent fd3976e commit a19e5c9
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 13 deletions.
49 changes: 49 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
language: python
sudo: false
cache: pip
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
matrix:
- TOXENV=check
- TOXENV=docs
matrix:
include:
- python: '2.7'
env:
- TOXENV=py27,report
- python: '3.3'
env:
- TOXENV=py33,report
- python: '3.4'
env:
- TOXENV=py34,report
- python: '3.5'
env:
- TOXENV=py35,report
- python: '3.6'
env:
- TOXENV=py36,report
- python: 'pypy-5.4'
env:
- TOXENV=pypy,report
before_install:
- python --version
- uname -a
- lsb_release -a
install:
- pip install tox
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
script:
- tox -v
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
notifications:
email:
on_success: never
on_failure: always
36 changes: 23 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[tox]
envlist = clean, check, py{27,34,35,36}, report
envlist = clean, check, py{27,34,35,36,py}, report

[testenv]
basepython =
{py27,docs}: {env:TOXPYTHON:python2.7}
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
py36: {env:TOXPYTHON:python3.6}
pypy: {env:TOXPYTHON:pypy}
{clean,check,report}: python3
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
Expand All @@ -10,38 +17,41 @@ passenv =
deps =
-rrequirements.txt
-rtest-requirements.txt
pytest-travis-fold
usedevelop = false
commands =
{posargs:py.test --cov --cov-report=term-missing -vv tests/}

[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build {posargs:-E} -b doctest docs dist/docs
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs

[testenv:check]
deps =
docutils
flake8
readme-renderer
pygments
isort
pygments
readme-renderer
skip_install = true
commands =
python setup.py check --strict --metadata --restructuredtext
flake8 src tests setup.py
isort --verbose --check-only --diff --recursive pymaven/ tests/ setup.py

[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage

[testenv:codecov]
deps =
codecov
skip_install = true
commands =
coverage xml --ignore-errors
codecov []
commands = coverage erase

[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage combine --append
coverage report
coverage html

0 comments on commit a19e5c9

Please sign in to comment.