- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: python | ||
|
||
python: | ||
- 2.6 | ||
- 2.7 | ||
- 3.1 | ||
- 3.2 | ||
|
||
install: | ||
- pip install --use-mirrors nose numpy | ||
- if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; then pip install --use-mirrors PIL; fi | ||
- python setup.py install | ||
|
||
script: | ||
- mkdir ../foo | ||
Would be nice if we could have a better folder name. Presumably this is done to have somewhere to store the result images? There was a problem hiding this comment. IIRC, that There was a problem hiding this comment. So At the very least, this mkdir should have a comment to explain the reasoning, and perhaps rename the folder to |
||
- cd ../foo | ||
- python ../matplotlib/tests.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines are my biggest concern. Presumably this is so that the CI server has the appropriate setup, but what happens is PIL & numpy already exist on the server?
Can you easily test with different versions of numpy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install
doesn't reinstall packages without the--upgrade
option.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't have enough exposure to
pip
to have confidence, so thanks for the clarification.Note: For clarification, I read what you said to mean "even if the original install wasn't done by pip, no re-installation will be done".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes -- that's my understanding of how it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this is for Travis and Travis starts with a completely clean environment every time it runs. Basically you have a fresh new VirtualBox VM sandbox for each build.