#!/bin/sh

set -e

case "${BUILD_TOOL}" in
    autotools)
	./autogen.sh

	configure_args=""
	#if [ "$CC" = "clang" ]; then
	    configure_args="${configure_args} --enable-debug"
	#fi

	./configure --with-ruby19 ${configure_args}
	;;
    cmake)
	cmake --version
	cmake . -DGRN_WITH_DEBUG=yes -DGRN_WITH_MRUBY=yes
	;;
esac

#!/bin/sh

set -e

case "${BUILD_TOOL}" in
    autotools)
	./autogen.sh

	configure_args=""
	#if [ "$CC" = "clang" ]; then
	    configure_args="${configure_args} --enable-debug"
	#fi

	./configure --with-ruby19 ${configure_args}
	;;
    cmake)
	cmake . -DGRN_WITH_DEBUG=yes -DGRN_WITH_MRUBY=yes
	;;
esac

Revert "travis: show CMake version"
Revert "travis: show CMake version"

This reverts commit e1fb11e4f92c994df41b34a73c469259e07bbe81.

The CMake version on Travis CI is 2.8.7:

    cmake version 2.8.7
