-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SweetIQ/travis
Travis CI
- Loading branch information
Showing
6 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /bin/bash | ||
|
||
sudo apt-get -y install curl libsnappy-dev autoconf automake libtool pkg-config | ||
|
||
if [ ! -f $HOME/libpostal/bootstrap.sh ]; then | ||
mkdir -p $HOME/libpostal | ||
mkdir -p $HOME/libpostal_data | ||
cd $HOME | ||
git clone https://github.com/openvenues/libpostal | ||
cd $HOME/libpostal | ||
git checkout v1.0.0 | ||
./bootstrap.sh | ||
./configure --datadir=$HOME/libpostal_data --prefix=/usr | ||
make | ||
fi | ||
|
||
cd $HOME/libpostal | ||
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-4.8 | ||
- libsnappy-dev | ||
- realpath | ||
|
||
language: elixir | ||
elixir: | ||
- 1.4.4 | ||
|
||
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 | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters