kopia lustrzana https://github.com/simonw/datasette
Speed up Travis by reusing pip wheel cache across builds (#324)
* Cache pip wheels between runs in Travis, refs #323 * Run pytest manually - "python setup.py test" appeared to still download a bunch of stuff: https://travis-ci.org/simonw/datasette/jobs/395306188 * Use extras_require so pip can install test dependencies: https://github.com/pypa/pip/issues/1197#issuecomment-228939212pull/388/head
rodzic
64c2fea8df
commit
47e689a89b
|
@ -7,7 +7,13 @@ python:
|
||||||
|
|
||||||
# Executed for 3.5 AND 3.5 as the first "test" stage:
|
# Executed for 3.5 AND 3.5 as the first "test" stage:
|
||||||
script:
|
script:
|
||||||
- python setup.py test
|
- pip install -U pip wheel
|
||||||
|
- pip install .[test]
|
||||||
|
- pytest
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.cache/pip
|
||||||
|
|
||||||
# This defines further stages that execute after the tests
|
# This defines further stages that execute after the tests
|
||||||
jobs:
|
jobs:
|
||||||
|
|
11
setup.py
11
setup.py
|
@ -47,10 +47,15 @@ setup(
|
||||||
datasette=datasette.cli:cli
|
datasette=datasette.cli:cli
|
||||||
''',
|
''',
|
||||||
setup_requires=['pytest-runner'],
|
setup_requires=['pytest-runner'],
|
||||||
|
extras_require={
|
||||||
|
'test': [
|
||||||
|
'pytest==3.6.0',
|
||||||
|
'aiohttp==2.3.2',
|
||||||
|
'beautifulsoup4==4.6.0',
|
||||||
|
]
|
||||||
|
},
|
||||||
tests_require=[
|
tests_require=[
|
||||||
'pytest==3.6.0',
|
'datasette[test]',
|
||||||
'aiohttp==2.3.2',
|
|
||||||
'beautifulsoup4==4.6.0',
|
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 4 - Beta',
|
||||||
|
|
Ładowanie…
Reference in New Issue