Skip to content

Commit 574d020

Browse files
authored
Merge pull request #503 from ocefpaf/fix_travis
Fix travis
2 parents edb5b2d + 98a60a9 commit 574d020

File tree

2 files changed

+34
-32
lines changed

2 files changed

+34
-32
lines changed

.travis.yml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,15 @@ language: python
22

33
sudo: false
44

5-
notifications:
6-
email: false
7-
8-
matrix:
9-
fast_finish: true
10-
include:
11-
- python: 2.7
12-
env: TEST_TARGET=branca_release
13-
- python: 3.4
14-
env: TEST_TARGET=branca_release
15-
- python: 3.5
16-
env: TEST_TARGET=branca_release
17-
allow_failures:
18-
- python: 3.5
19-
env: TEST_TARGET=branca_latest
20-
- python: 3.4
21-
env: TEST_TARGET=branca_latest
22-
- python: 2.7
23-
env: TEST_TARGET=branca_latest
5+
python:
6+
- 2.7
7+
- 3.4
8+
- 3.5
9+
10+
env:
11+
- TEST_TARGET=branca_release
12+
- TEST_TARGET=branca_latest
13+
- TEST_TARGET=coding_standards
2414

2515
before_install:
2616
- wget http://bit.ly/miniconda -O miniconda.sh
@@ -35,14 +25,20 @@ before_install:
3525
conda install --yes mock ;
3626
fi
3727

38-
- if [[ $TEST_TARGET == 'branca_latest' ]]; then
39-
pip install git+https://github.com/python-visualization/branca.git ;
40-
fi
41-
4228
# Test source distribution.
4329
install:
4430
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
4531

4632
script:
47-
- python setup.py test
48-
- find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100
33+
- if [[ $TEST_TARGET == 'branca_release' ]]; then
34+
python setup.py test ;
35+
fi
36+
37+
- if [[ $TEST_TARGET == 'branca_latest' ]]; then
38+
pip install git+https://github.com/python-visualization/branca.git ;
39+
python setup.py test ;
40+
fi
41+
42+
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
43+
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
44+
fi

examples/folium_vincent_markers.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@
3737
vis3.to_json('vis3.json')
3838

3939
# Map all buoys similar to https://github.com/python-visualization/folium#vincentvega-markers
40-
buoy_map = folium.Map(location=[46.3014, -123.7390], zoom_start=7,tiles='Stamen Terrain')
41-
popup1 = folium.Popup(max_width=800,).add_child(folium.Vega(vis1, width=500, height=250))
42-
folium.RegularPolygonMarker([47.3489, -124.708],fill_color='#43d9de', radius=12, popup=popup1).add_to(buoy_map)
43-
popup2 = folium.Popup(max_width=800,).add_child(folium.Vega(vis2, width=500, height=250))
44-
folium.RegularPolygonMarker([44.639, -124.5339],fill_color='#43d9de', radius=12, popup=popup2).add_to(buoy_map)
45-
popup3 = folium.Popup(max_width=800,).add_child(folium.Vega(vis3, width=500, height=250))
46-
folium.RegularPolygonMarker([46.216, -124.1280],fill_color='#43d9de', radius=12, popup=popup3).add_to(buoy_map)
40+
kw = dict(fill_color='#43d9de', radius=12)
41+
buoy_map = folium.Map(location=[46.3014, -123.7390],
42+
zoom_start=7, tiles='Stamen Terrain')
43+
44+
popup1 = folium.Popup(max_width=800).add_child(folium.Vega(vis1, width=500, height=250))
45+
folium.RegularPolygonMarker([47.3489, -124.708], popup=popup1, **kw).add_to(buoy_map)
46+
47+
popup2 = folium.Popup(max_width=800).add_child(folium.Vega(vis2, width=500, height=250))
48+
folium.RegularPolygonMarker([44.639, -124.5339], popup=popup2, **kw).add_to(buoy_map)
49+
50+
popup3 = folium.Popup(max_width=800).add_child(folium.Vega(vis3, width=500, height=250))
51+
folium.RegularPolygonMarker([46.216, -124.1280], popup=popup3, **kw).add_to(buoy_map)
52+
4753
buoy_map.save(outfile='NOAA_buoys.html')

0 commit comments

Comments
 (0)