Skip to content

Commit b9beed7

Browse files
committed
Merge pull request #220 from WeatherGod/travis_ci
TST: Travis ci
2 parents 5a0f3bb + 933bc1c commit b9beed7

File tree

2 files changed

+50
-5
lines changed

2 files changed

+50
-5
lines changed

.travis.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+

lib/mpl_toolkits/basemap/test.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

145145
if __name__ == '__main__':
146-
test()
146+
import unittest
147+
unittest.main()

0 commit comments

Comments
 (0)