Make ci builds faster by splitting requirements
Make travis builds faster by splitting requirements into requirements-travis.txt, which contains all the requirements necessary for running tests, documentation related packages are omitted and added as a part of requirements-dev.txt Additionally .travis.yml is modified to cache pip downloads, though this feature is yet to be rolled out for the free tier
This commit is contained in:
parent
726d1735db
commit
f326975d7c
@ -6,10 +6,12 @@ python:
|
|||||||
- "3.2"
|
- "3.2"
|
||||||
- "3.3"
|
- "3.3"
|
||||||
- "3.4"
|
- "3.4"
|
||||||
|
cache:
|
||||||
|
- $HOME/.pip-cache
|
||||||
# command to install dependencies
|
# command to install dependencies
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-travis.txt --download-cache $HOME/.pip-cache
|
||||||
- pip install coveralls
|
- pip install coveralls --download-cache $HOME/.pip-cache
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi # needs for running tests
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi # needs for running tests
|
||||||
- pip install --allow-all-external -e .
|
- pip install --allow-all-external -e .
|
||||||
# command to run tests
|
# command to run tests
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
|
-r requirements-travis.txt
|
||||||
# test tools
|
# test tools
|
||||||
nose
|
nose
|
||||||
tox
|
tox
|
||||||
|
|
||||||
# code quality
|
|
||||||
flake8
|
|
||||||
coverage
|
|
||||||
|
|
||||||
# documentation
|
# documentation
|
||||||
Pygments>=1.6
|
Pygments>=1.6
|
||||||
Sphinx
|
Sphinx
|
||||||
|
3
requirements-travis.txt
Normal file
3
requirements-travis.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# code quality
|
||||||
|
flake8
|
||||||
|
coverage
|
Loading…
Reference in New Issue
Block a user