forked from openvenues/pypostal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 788 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: python
branches:
only:
- master
python:
- "2.7"
- "3.4"
- "3.5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- libsnappy-dev
- realpath
install:
- 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 CFLAGS=-I$(pwd)/deps/include
- export LDFLAGS=-L$(pwd)/deps/lib
- python setup.py install
- python setup.py build_ext --inplace
script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/deps/lib
- nosetests postal/tests