diff options
author | Alec Thomas <alec@swapoff.org> | 2013-04-01 11:51:29 -0400 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2013-04-02 17:50:58 -0400 |
commit | 947d29aa374b9b5f5c581120ce5a4e7a32d0c981 (patch) | |
tree | 9a22cf41b4db463ff17e964fe36e78e3219d46d9 /scripts/travis.sh | |
parent | e569dc47c9ff3c3118cb96427d3ec9a6aced98aa (diff) |
Allow shared_ptr implementation to be selected.
Fixes #6.
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 |