kopia lustrzana https://github.com/jupyterhub/repo2docker
enable coverage on Travis
- ensure pip is up to date - enable pip caching - run tests with Python 3.6 - publish coverage to codecovpull/229/head
rodzic
3d369aff8a
commit
f86fa39fc3
|
@ -9,6 +9,8 @@ MANIFEST
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.cache
|
.cache
|
||||||
|
.coverage
|
||||||
|
htmlcov
|
||||||
|
|
||||||
repo2docker/s2i
|
repo2docker/s2i
|
||||||
|
|
||||||
|
|
19
.travis.yml
19
.travis.yml
|
@ -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:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
pyyaml
|
pyyaml
|
||||||
pytest
|
pytest
|
||||||
wheel
|
wheel
|
||||||
|
pytest-cov
|
||||||
|
|
Ładowanie…
Reference in New Issue