File tree Expand file tree Collapse file tree 2 files changed +50
-5
lines changed
Expand file tree Collapse file tree 2 files changed +50
-5
lines changed Original file line number Diff line number Diff line change 1+ sudo : false
2+
3+ env :
4+ global :
5+ - NUMPY=numpy
6+ - TEST_ARGS=--no-pep8
7+
8+ language : python
9+
10+ matrix :
11+ include :
12+ - python : 2.6
13+ env : NUMPY=numpy==1.6
14+ - python : 2.7
15+ - python : 3.3
16+ - python : 3.4
17+ - python : 3.5
18+ # - python: 2.7
19+ # env: TEST_ARGS=--pep8
20+
21+ before_install :
22+ # Install into our own pristine virtualenv
23+ - virtualenv --python=python venv
24+ - source venv/bin/activate
25+
26+ install :
27+ # Upgrade pip and setuptools. Mock has issues with the default version of
28+ # setuptools
29+ - |
30+ pip install --upgrade pip
31+ pip install --upgrade setuptools
32+ pip install $NUMPY
33+ - |
34+ cd geos-3.3.3
35+ export GEOS_DIR=$HOME/.local/
36+ ./configure --prefix=$GEOS_DIR
37+ make; make install
38+ cd ..
39+ # - pip install pep8
40+ - python setup.py install
41+
42+ script :
43+ - python lib/mpl_toolkits/basemap/test.py
44+
Original file line number Diff line number Diff line change @@ -136,11 +136,12 @@ def test():
136136 Run some tests.
137137 """
138138 import unittest
139- rotatevector_suite = unittest .makeSuite (TestRotateVector ,'test' )
140- shiftgrid_suite = unittest .makeSuite (TestShiftGrid ,'test' )
139+ from . import test
141140 runner = unittest .TextTestRunner ()
142- runner .run (rotatevector_suite )
143- runner .run (shiftgrid_suite )
141+ suite = unittest .findTestCases (test )
142+ runner .run (suite )
143+
144144
145145if __name__ == '__main__' :
146- test ()
146+ import unittest
147+ unittest .main ()
You can’t perform that action at this time.
0 commit comments