forked from osmcode/node-osmium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (25 loc) · 853 Bytes
/
.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
language: node_js
node_js:
- "0.10"
before_install:
# we need c++11 compatible g++
- sudo apt-add-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get -y update
- sudo apt-get -y install gcc-4.7 g++-4.7
# first test install of binary
# - npm install --verbose
# - make test
install:
# next test source compile, so get dependencies
- sudo apt-add-repository --yes ppa:mapnik/boost
- sudo apt-get -y update -qq
- sudo apt-get -y install git build-essential libboost-dev zlib1g-dev protobuf-compiler libprotobuf-lite7 libprotobuf-dev libexpat1-dev libsparsehash-dev
- git clone https://github.com/scrosby/OSM-binary.git
- cd OSM-binary/src
- make && sudo make install
- cd ../../
before_script:
- git clone https://github.com/osmcode/libosmium.git ../libosmium
- CXX=g++-4.7 npm install --build-from-source
script:
- make test