mirror of https://github.com/CIRCL/AIL-framework
Update travis & install script
parent
a0a4d0dff3
commit
03b3cb0bf2
29
.travis.yml
29
.travis.yml
|
@ -7,8 +7,6 @@ sudo: required
|
||||||
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
group: edge
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
@ -27,6 +25,7 @@ addons:
|
||||||
# Leveldb
|
# Leveldb
|
||||||
- libgmp-dev
|
- libgmp-dev
|
||||||
- libev-dev
|
- libev-dev
|
||||||
|
- cmake
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- AIL_HOME=$TRAVIS_BUILD_DIR AIL_BIN=$TRAVIS_BUILD_DIR/bin/ \
|
- AIL_HOME=$TRAVIS_BUILD_DIR AIL_BIN=$TRAVIS_BUILD_DIR/bin/ \
|
||||||
|
@ -45,16 +44,30 @@ install:
|
||||||
# Redis
|
# Redis
|
||||||
- test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
- test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
||||||
- pushd redis
|
- pushd redis
|
||||||
- git checkout 3.0
|
- git checkout 3.2
|
||||||
- make
|
- make
|
||||||
- popd
|
- popd
|
||||||
# Redis leveldb
|
# Redis leveldb
|
||||||
- test ! -d redis-leveldb/ && git clone https://github.com/KDr2/redis-leveldb.git
|
- test ! -d redis-leveldb/ && git clone https://github.com/KDr2/redis-leveldb.git
|
||||||
- pushd redis-leveldb/
|
pushd redis-leveldb/
|
||||||
- git submodule init
|
git submodule init
|
||||||
- git submodule update
|
git submodule update
|
||||||
- make
|
make
|
||||||
- popd
|
popd
|
||||||
|
# Faup
|
||||||
|
- test ! -d faup && git clone https://github.com/stricaud/faup.git
|
||||||
|
pushd faup/
|
||||||
|
test ! -d build && mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. && make
|
||||||
|
sudo make install
|
||||||
|
echo '/usr/local/lib' | sudo tee -a /etc/ld.so.conf.d/faup.conf
|
||||||
|
sudo ldconfig
|
||||||
|
popd
|
||||||
|
# PyFaup
|
||||||
|
- pushd faup/src/lib/bindings/python/
|
||||||
|
python setup.py install
|
||||||
|
popd
|
||||||
# Set config
|
# Set config
|
||||||
- cp bin/packages/config.cfg.sample bin/packages/config.cfg
|
- cp bin/packages/config.cfg.sample bin/packages/config.cfg
|
||||||
- mkdir -p $AIL_HOME/{PASTES,Blooms,dumps}
|
- mkdir -p $AIL_HOME/{PASTES,Blooms,dumps}
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -x
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
sudo apt-get install python-pip python-virtualenv python-dev libfreetype6-dev \
|
sudo apt-get install python-pip python-virtualenv python-dev libfreetype6-dev \
|
||||||
screen g++ python-tk unzip libsnappy-dev
|
screen g++ python-tk unzip libsnappy-dev cmake
|
||||||
|
|
||||||
#Needed for bloom filters
|
#Needed for bloom filters
|
||||||
sudo apt-get install libssl-dev libfreetype6-dev python-numpy
|
sudo apt-get install libssl-dev libfreetype6-dev python-numpy
|
||||||
|
@ -24,10 +24,21 @@ sudo easy_install -U distribute
|
||||||
# REDIS #
|
# REDIS #
|
||||||
test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
test ! -d redis/ && git clone https://github.com/antirez/redis.git
|
||||||
pushd redis/
|
pushd redis/
|
||||||
git checkout 3.0
|
git checkout 3.2
|
||||||
make
|
make
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# Faup
|
||||||
|
test ! -d faup && git clone https://github.com/stricaud/faup.git
|
||||||
|
pushd faup/
|
||||||
|
test ! -d build && mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. && make
|
||||||
|
sudo make install
|
||||||
|
echo '/usr/local/lib' | sudo tee -a /etc/ld.so.conf.d/faup.conf
|
||||||
|
sudo ldconfig
|
||||||
|
popd
|
||||||
|
|
||||||
# REDIS LEVEL DB #
|
# REDIS LEVEL DB #
|
||||||
test ! -d redis-leveldb/ && git clone https://github.com/KDr2/redis-leveldb.git
|
test ! -d redis-leveldb/ && git clone https://github.com/KDr2/redis-leveldb.git
|
||||||
pushd redis-leveldb/
|
pushd redis-leveldb/
|
||||||
|
@ -56,5 +67,11 @@ mkdir -p $AIL_HOME/LEVEL_DB_DATA/2016
|
||||||
pip install -U pip
|
pip install -U pip
|
||||||
pip install -r pip_packages_requirement.txt
|
pip install -r pip_packages_requirement.txt
|
||||||
|
|
||||||
|
# Pyfaup
|
||||||
|
pushd faup/src/lib/bindings/python/
|
||||||
|
python setup.py install
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
# Download the necessary NLTK corpora
|
# Download the necessary NLTK corpora
|
||||||
HOME=$(pwd) python -m textblob.download_corpora
|
HOME=$(pwd) python -m textblob.download_corpora
|
||||||
|
|
Loading…
Reference in New Issue