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:
Abhishek L 2014-05-13 19:39:07 +05:30
parent 726d1735db
commit f326975d7c
3 changed files with 8 additions and 6 deletions

View File

@ -6,10 +6,12 @@ python:
- "3.2"
- "3.3"
- "3.4"
cache:
- $HOME/.pip-cache
# command to install dependencies
install:
- pip install -r requirements-dev.txt
- pip install coveralls
- pip install -r requirements-travis.txt --download-cache $HOME/.pip-cache
- pip install coveralls --download-cache $HOME/.pip-cache
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi # needs for running tests
- pip install --allow-all-external -e .
# command to run tests

View File

@ -1,11 +1,8 @@
-r requirements-travis.txt
# test tools
nose
tox
# code quality
flake8
coverage
# documentation
Pygments>=1.6
Sphinx

3
requirements-travis.txt Normal file
View File

@ -0,0 +1,3 @@
# code quality
flake8
coverage