diff options
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-x | scripts/travis.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh new file mode 100755 index 0000000..9d06fa6 --- /dev/null +++ b/scripts/travis.sh @@ -0,0 +1,15 @@ +#!/bin/bash -e + +CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1" + +if [ "$USE_STD_SHARED_PTR" = "1" ]; then + CMAKE_ARGS="${CMAKE_ARGS} -DUSE_STD_SHARED_PTR=1" + # This fails on OSX + if [ "$CXX" = "clang++" ]; then + CMAKE_ARGS="${CMAKE_ARGS} -DUSE_CPP11_STDLIB=1" + fi +fi + +cmake ${CMAKE_ARGS} +make +make test |