Skip to content

Commit 88a10df

Browse files
committed
ci: manual cartopy
1 parent fbd57be commit 88a10df

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,16 @@ commands:
8787
- run:
8888
name: Download cartopy shapes
8989
command: |
90+
DEBIAN_FRONTEND=noninteractive apt-get -y update
91+
DEBIAN_FRONTEND=noninteractive apt-get install -y unzip wget
9092
source activate opendrift
93+
94+
mkdir -p /root/.local/share/cartopy/shapefiles/gshhs
95+
cd /root/.local/share/cartopy/shapefiles/gshhs
96+
wget https://github.com/GenericMappingTools/gshhg-gmt/releases/download/2.3.7/gshhg-shp-2.3.7.zip
97+
unzip gshhg-shp-2.3.7.zip
98+
mv GSHHS_shp/* .
99+
91100
python -c "import cartopy; list(map(cartopy.io.shapereader.gshhs, ('c', 'l', 'i', 'h', 'f')))"
92101
python -c "import cartopy; cartopy.io.shapereader.natural_earth(resolution='110m', category='cultural', name='admin_0_countries')"
93102

0 commit comments

Comments
 (0)