forked from Project-OSRM/node-osrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 1013 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
31
32
language: node_js
node_js:
- "0.10"
- "0.8"
before_install:
- sudo apt-get -qq update
- sudo apt-get install build-essential git cmake libboost1.46-all-dev libprotoc-dev libprotobuf7 protobuf-compiler libprotobuf-dev libosmpbf-dev libpng12-dev libbz2-dev libstxxl-dev libstxxl-doc libstxxl1 libxml2-dev libzip-dev lua5.1 liblua5.1-0-dev libluabind-dev
- git clone https://github.com/scrosby/OSM-binary.git
- cd OSM-binary/src
- make && sudo make install
- cd ../../
# https://github.com/travis-ci/travis-cookbooks/issues/155
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
install:
- git clone https://github.com/DennisOSRM/Project-OSRM.git ../Project-OSRM
- cd ../Project-OSRM
- git checkout develop
- git describe
- mkdir -p build && cd build && cmake ../ -DWITH_TOOLS=1
- make
- cd ../../node-OSRM
before_script:
#- export CXXFLAGS="-I/usr/include/lua5.1/"
- npm install mocha
- npm install
script:
- make test # make target downloads data and prepares it if it does not exist