forked from tilemill-project/tilemill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 1.16 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
29
30
31
32
33
34
language: node_js
node_js:
- "0.10"
before_install:
- sudo apt-add-repository --yes ppa:mapnik/v2.2.0
- sudo apt-add-repository --yes ppa:mapnik/nightly-2.3
- sudo apt-get update -qq
- sudo nvm install v0.10.22
- nvm use v0.10.22
- sudo apt-get -qq install libprotobuf7 libprotobuf-dev protobuf-compiler postgresql-9.1 postgresql-server-dev-9.1 postgresql-contrib-9.1 postgresql-9.1-postgis
install:
- POSTGIS_PATH=`pg_config --sharedir`/contrib/postgis-1.5
- createdb -E UTF8 template_postgis -U postgres
- psql -q -d template_postgis -f $POSTGIS_PATH/postgis.sql -U postgres
- psql -q -d template_postgis -f $POSTGIS_PATH/spatial_ref_sys.sql -U postgres
- npm install mocha
before_script:
- sudo apt-get -qq install libmapnik=2.2.0* mapnik-utils=2.2.0* libmapnik-dev=2.2.0*
- npm install
- npm ls
- npm test
- sudo apt-get purge libmapnik=2.2.0* mapnik-utils=2.2.0* libmapnik-dev=2.2.0*
script:
- sudo apt-get -qq install libmapnik=2.3.0* mapnik-utils=2.3.0* libmapnik-dev=2.3.0* mapnik-input-plugin*
- rm -rf ./node_modules/
- npm install
- npm ls
- npm test
- sudo apt-get purge libmapnik=2.3.0* mapnik-utils=2.3.0* libmapnik-dev=2.3.0* mapnik-input-plugin*