enable coverage on Travis

- ensure pip is up to date
- enable pip caching
- run tests with Python 3.6
- publish coverage to codecov
pull/229/head
Min RK 2018-02-09 15:53:07 +01:00
rodzic 3d369aff8a
commit f86fa39fc3
3 zmienionych plików z 15 dodań i 7 usunięć

2
.gitignore vendored
Wyświetl plik

@ -9,6 +9,8 @@ MANIFEST
.DS_Store .DS_Store
.cache .cache
.coverage
htmlcov
repo2docker/s2i repo2docker/s2i

Wyświetl plik

@ -1,20 +1,25 @@
language: python language: python
sudo: required sudo: required
cache: pip
services: services:
- docker - docker
python: python:
- 3.4 - 3.6
install: install:
# Make a wheel and install it to test to catch possible # Make a wheel and install it to test to catch possible
# issues with MANIFEST.in # issues with releases
- pip install --no-cache-dir -r dev-requirements.txt - pip install --upgrade setuptools pip
- python setup.py bdist_wheel - pip install -r dev-requirements.txt
- pip install dist/*.whl - python setup.py bdist_wheel
- pip install dist/*.whl
script: script:
# cd into tests so CWD being repo2docker does not hide # cd into tests so CWD being repo2docker does not hide
# possible issues with MANIFEST.in # possible issues with MANIFEST.in
- cd tests && pytest -s -v ${REPO_TYPE} - cd tests && pytest --cov repo2docker -s -v ${REPO_TYPE}
after_success:
- pip install codecov
- codecov
jobs: jobs:
include: include:

Wyświetl plik

@ -1,3 +1,4 @@
pyyaml pyyaml
pytest pytest
wheel wheel
pytest-cov