forked from openvenues/jpostal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 972 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
dist: precise
language: java
branches:
only:
- master
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- libsnappy-dev
- realpath
before_install:
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*
- export CC="gcc-4.8"
- mkdir deps
- git clone https://github.com/openvenues/libpostal
- cd libpostal
- ./bootstrap.sh
- ./configure --datadir=$(pwd)/data --prefix=$(realpath $(pwd)/../deps) --bindir=$(realpath $(pwd)/../deps)
- make install
- cd ..
- export PKG_CONFIG_PATH=$(pwd)/deps/lib/pkgconfig:$PKG_CONFIG_PATH
- export LD_LIBRARY_PATH=$(pwd)/deps/lib:$LD_LIBRARY_PATH