1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00
dindexer/drone_configuration

24 lines
994 B
Text
Raw Normal View History

2016-02-12 20:10:40 +00:00
# Configuration for drone.io
2015-12-04 18:54:16 +00:00
2016-02-10 20:04:13 +00:00
git submodule update --init
2015-12-04 18:54:16 +00:00
cd ..
wget --no-check-certificate --quiet https://cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.sh
echo y > cmake.input
echo n >> cmake.input
sudo sh cmake-3.4.1-Linux-x86_64.sh --prefix=/opt < cmake.input > /dev/null
export PATH=/opt/bin:$PATH
2016-02-10 20:04:13 +00:00
sudo add-apt-repository ppa:ubuntu-toolchain-r/test > /dev/null 2>&1
2015-12-04 18:54:16 +00:00
sudo add-apt-repository ppa:smfengler/ppa > /dev/null 2>&1
sudo add-apt-repository ppa:boost-latest/ppa > /dev/null 2>&1
sudo rm -f /etc/apt/sources.list.d/google*
2015-12-04 18:54:16 +00:00
sudo apt-get -qq update
sudo apt-get -qq install libyaml-cpp-dev libboost1.55-dev libboost-program-options1.55-dev libmagic-dev gcc-5 g++-5 rpm
2016-02-10 20:04:13 +00:00
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
echo 3 | sudo update-alternatives --config gcc
2015-12-04 18:54:16 +00:00
mkdir dindexer_build
cd dindexer_build
2016-04-21 23:36:17 +00:00
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DDINDEXER_WITH_BUILD_DATE=on ../dindexer
2015-12-04 18:54:16 +00:00
make
2016-04-21 23:36:17 +00:00
ctest
2016-02-12 20:10:40 +00:00
make package