-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
46 lines (41 loc) · 1008 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- libsnappy-dev
- realpath
language: elixir
elixir:
- 1.4.5
otp_release:
- 18.2.1
- 20.0
cache:
directories:
- $HOME/.cache/erlang/dialyzer_hipe_cache
install:
- export CC="clang"
- 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
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/_deps/lib
- export LD_RUN_PATH=$LD_RUN_PATH:$(pwd)/_deps/lib
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
script:
- export CC="clang"
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/_deps/lib
- mix test
- travis_wait 40 mix dialyzer
notifications:
email: false