-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (22 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: node_js
node_js:
- "v4"
dist: trusty
sudo: required
addons:
postgresql: "9.4"
before_script:
- sudo apt-get update
- sudo apt-get install -y gdal-bin postgis postgresql-9.4-postgis-2.1
- psql -c "CREATE DATABASE apicarto;" -U postgres
- psql -d apicarto -c "CREATE EXTENSION postgis;" -U postgres
- mkdir -p data
- cd data
- wget https://www.data.gouv.fr/s/resources/aires-geographiques-des-appellations-de-la-filiere-viticole/20151026-144523/Appellation.zip
- unzip Appellation.zip
- "ogr2ogr --config PG_USE_COPY YES -t_srs EPSG:4326 -f PGDump /vsistdout/ Appellation.TAB -lco DROP_TABLE=IF_EXISTS -lco SRID=4326 -lco GEOMETRY_NAME=geom | PGCLIENTENCODING=LATIN1 psql -U postgres -d apicarto -f -"
- wget http://osm13.openstreetmap.fr/~cquest/openfla/export/communes-20150101-5m-shp.zip
- unzip communes-20150101-5m-shp.zip
- "ogr2ogr --config PG_USE_COPY YES -f PGDump /vsistdout/ communes-20150101-5m.shp -lco DROP_TABLE=IF_EXISTS -lco SRID=4326 -lco GEOMETRY_NAME=geom -nlt PROMOTE_TO_MULTI -nln communes -select insee,nom | psql -d apicarto -f -"
- cd ..
script: "npm run lint"