Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecov integration #525

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 41 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,51 @@ cache: pip

dist: trusty

matrix:
jobs:
include:
- python: "2.7"

- stage: unit-test
python: "2.7"
env: TOXENV=py27-sqlite
- python: "3.4"
install: pip install codecov tox
script: tox -- --exitfirst -m unit
after_success: codecov --disable search --flags unittests

- stage: unit-test
python: "3.4"
env: TOXENV=py34-sqlite
- python: "3.5"
install: pip install codecov tox
script: tox -- --exitfirst -m unit
after_success: codecov --disable search --flags unittests

- stage: unit-test
python: "3.5"
env: TOXENV=py35-sqlite
install: pip install codecov tox
script: tox -- --exitfirst -m unit
after_success: codecov --disable search --flags unittests

- stage: integration-test
python: "2.7"
env: TOXENV=py27-sqlite
install: pip install codecov tox
script: tox -- --exitfirst -m functional -k 'not harvesting'
after_success: codecov --disable search --flags integrationtests

- stage: integration-test
python: "3.4"
env: TOXENV=py34-sqlite
install: pip install codecov tox
script: tox -- --exitfirst -m functional -k 'not harvesting'
after_success: codecov --disable search --flags integrationtests

- stage: integration-test
python: "3.5"
env: TOXENV=py35-sqlite
install: pip install codecov tox
script: tox -- --exitfirst -m functional -k 'not harvesting'
after_success: codecov --disable search --flags integrationtests


addons:
apt:
Expand All @@ -22,12 +59,6 @@ addons:
- libxslt1-dev
- libz-dev

install:
- pip install tox

script:
- tox -- --exitfirst -m unit
- tox -- --exitfirst -m functional -k 'not harvesting'

notifications:
irc:
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ skip_missing_interpreters = True
[testenv]
deps =
-rrequirements-dev.txt
usedevelop=True
usedevelop = True
commands =
py{27,35}-sqlite: py.test {posargs}
py34-sqlite: py.test --cov pycsw {posargs}
coverage run --parallel-mode --module pytest {posargs}
coverage combine --append
coverage report