Last active
January 12, 2016 07:08
-
-
Save paoloambrosio/f4007067b51ffb14e0d4 to your computer and use it in GitHub Desktop.
Cucumber-CPP dependencies setup and compile
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
#!/bin/bash | |
set -e | |
export BOOST_VERSION=55 | |
export GMOCK_VERSION=${GMOCK_VERSION} | |
export CUCUMBER_CPP_HOME=$(pwd) | |
export CUCUMBER_CPP_3RD_PARTY=$CUCUMBER_CPP_HOME/3rd_party | |
export CMAKE_PREFIX_PATH=$CUCUMBER_CPP_3RD_PARTY | |
export LD_LIBRARY_PATH=$CUCUMBER_CPP_3RD_PARTY/lib | |
mkdir -p $CUCUMBER_CPP_3RD_PARTY/src | |
cd $CUCUMBER_CPP_3RD_PARTY/src | |
wget http://download.icu-project.org/files/icu4c/51.1/icu4c-51_1-src.tgz | |
tar zxf icu4c-51_1-src.tgz | |
mv icu icu4c-51_1 | |
cd icu4c-51_1/source | |
./configure --prefix=$CUCUMBER_CPP_3RD_PARTY --enable-static | |
make install | |
cd $CUCUMBER_CPP_3RD_PARTY/src | |
wget -O boost_1_${BOOST_VERSION}_0.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.${BOOST_VERSION}.0/boost_1_${BOOST_VERSION}_0.tar.bz2/download | |
tar jxf boost_1_${BOOST_VERSION}_0.tar.bz2 | |
cd boost_1_${BOOST_VERSION}_0 | |
./bootstrap.sh --prefix=$CUCUMBER_CPP_3RD_PARTY --with-libraries=thread,regex,system,date_time,test,filesystem,chrono,program_options --with-icu=$CUCUMBER_CPP_3RD_PARTY | |
./bjam install | |
cd $CUCUMBER_CPP_3RD_PARTY/src | |
wget https://googlemock.googlecode.com/files/gmock-${GMOCK_VERSION}.zip | |
unzip gmock-${GMOCK_VERSION}.zip | |
cd gmock-${GMOCK_VERSION} | |
./configure --prefix=$CUCUMBER_CPP_3RD_PARTY | |
make | |
# GMock 1.6+ does not install and Cucumber-Cpp needs GMock 1.6+! You can still comment out the few lines in the two Makefile | |
sed -i.orig 's/\tfalse/\t#false/' Makefile gtest/Makefile | |
make install | |
cd $CUCUMBER_CPP_3RD_PARTY/src | |
git clone https://github.com/tpuronen/cppspec.git | |
cd cppspec | |
cmake -E make_directory build | |
cmake -E chdir build cmake -DCMAKE_INSTALL_PREFIX=$CUCUMBER_CPP_3RD_PARTY .. | |
cmake --build build | |
cmake --build build --target install | |
cd $CUCUMBER_CPP_HOME | |
git clone git://github.com/cucumber/cucumber-cpp.git | |
cmake -E make_directory build | |
# rvm install ruby-1.9.3 | |
# rvm gemset create cucumber-cpp | |
# rvm use 1.9.3@cucumber-cpp | |
cmake -E chdir build cmake -DCMAKE_PREFIX_PATH=$CUCUMBER_CPP_3RD_PARTY $CUCUMBER_CPP_HOME/cucumber-cpp | |
# Mind master branch works with aruba 0.5.3 and rspec 2.14.1 | |
cmake --build build | |
cmake --build build --target test | |
cmake --build build --target features |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment