Skip to content

Commit

Permalink
Add a build for c++11 on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Nov 1, 2015
1 parent 9b18f5e commit 53e8582
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ matrix:
sources:
- ubuntu-toolchain-r-test

- env: CLANG_VERSION=3.4 BUILD_TYPE=Debug ASAN=on LIBCXX=off CXX11=on
os: linux
compiler: clang
addons: *clang34

- env: CLANG_VERSION=3.5 BUILD_TYPE=Debug ASAN=on LIBCXX=on
os: linux
compiler: clang-3.5
Expand Down Expand Up @@ -143,6 +148,7 @@ script:
- cd $CHECKOUT_PATH
- if [ ! -d build ]; then mkdir build; fi
- cd build
- if [[ "$CXX11" == "on" ]]; then export CXXFLAGS="${CXXFLAGS} -std=c++11"; fi
- if [[ "$ASAN" == "on" ]]; then export CXXFLAGS="${CXXFLAGS} -fsanitize=address,undefined,integer -fno-omit-frame-pointer -fno-sanitize=unsigned-integer-overflow"; fi
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- CTEST_OUTPUT_ON_FAILURE=1 CTEST_PARALLEL_LEVEL=2 make -j2 check VERBOSE=1
Expand Down

0 comments on commit 53e8582

Please sign in to comment.