Commit 276aa68c authored by Paolo Ambrosio's avatar Paolo Ambrosio
Browse files

Removed Bundler from CMake script (left as a manual step)

parent b8b2bf5e
......@@ -132,14 +132,6 @@ endif()
if(CUKE_DISABLE_E2E_TESTS)
message(STATUS "Skipping end-to-end tests")
else()
find_program(BUNDLE bundle)
if(BUNDLE)
message(STATUS "Installing gem dependencies")
execute_process(COMMAND ${BUNDLE} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
else()
message(WARNING "Could not find Bundler: skipping Ruby Gem management")
endif()
find_program(CUCUMBER_RUBY cucumber)
if(CUCUMBER_RUBY)
message(STATUS "Found Cucumber")
......
......@@ -21,7 +21,7 @@ It relies on a few libraries:
Optional library for Boost Test driver: *test*.
* [GTest](http://code.google.com/p/googletest/) 1.6 or later.
Optional for the GTest driver. By default downloaded and built by CMake.
* [CppSpec](https://github.com/tpuronen/cppspec) development branch.
* [CppSpec](https://github.com/tpuronen/cppspec) development branch.
Optional for the CppSpec driver.
* [GMock](http://code.google.com/p/googlemock/) 1.6 or later.
Optional for the internal test suite. By default downloaded and built by CMake.
......@@ -38,6 +38,13 @@ Cucumber-Cpp uses the wire protocol at the moment, so you will need
Cucumber-Ruby installed and available on the path. It is also needed
to run the functional test suite.
To install the Ruby prerequisites:
```
gem install bundler
bundle install
```
Building Cucumber-Cpp with tests and samples:
```
......
#!/bin/sh
set -e #break script on non-zero exitcode from any command
gem install bundler
bundle install
cmake -E make_directory build
if [ -z ${GMOCK_PATH+x} ]; then
if [ -z ${GMOCK_PATH+x} ]; then
cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on -DGMOCK_VER=${GMOCK_VER} ..
else
cmake -E chdir build cmake -DCUKE_ENABLE_EXAMPLES=on -DGMOCK_SRC_DIR=${GMOCK_PATH} ..
......@@ -12,14 +13,13 @@ cmake --build build
cmake --build build --target test
cmake --build build --target features
GTEST=build/examples/Calc/GTestCalculatorSteps
GTEST=build/examples/Calc/GTestCalculatorSteps
BOOST=build/examples/Calc/BoostCalculatorSteps
if [ -f $GTEST ]; then
$GTEST >/dev/null &
cucumber examples/Calc
fi
if [ -f $BOOST ]; then
if [ -f $BOOST ]; then
$BOOST >/dev/null &
cucumber examples/Calc
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment