From 48ff5cd34135a6b9ba5ff09077ee8b01ad21187f Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Mon, 11 May 2015 11:37:19 +0200 Subject: [PATCH] enable debug/release and c++11/14 --- .travis.yml | 171 +++++++++++++++++++++------------------------------- 1 file changed, 69 insertions(+), 102 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e261f2c..18cc4a5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,31 +27,28 @@ matrix: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.5 - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On - # os: linux - # addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On + os: linux + addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On + os: linux + addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On + os: linux + addons: *clang35 - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On - # os: linux - # addons: *clang35 - - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On - # os: linux - # addons: *clang35 - - # Uncomment these to test without AddressSanitizer - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang35 - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang35 - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang35 - # - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On + os: linux + addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On + os: linux + addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On + os: linux + addons: *clang35 + - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On + os: linux + addons: *clang35 # Test clang-3.6: C++11/C++14, Buidd=Debug/Release, ASAN=On/Off - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=11 ASAN=On LIBCXX=On @@ -65,31 +62,28 @@ matrix: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On - # os: linux - # addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On + os: linux + addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On + os: linux + addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On + os: linux + addons: *clang36 - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On - # os: linux - # addons: *clang36 - - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On - # os: linux - # addons: *clang36 - - # Uncomment these to test without AddressSanitizer - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang36 - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang36 - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang36 - # - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On + os: linux + addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On + os: linux + addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On + os: linux + addons: *clang36 + - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On + os: linux + addons: *clang36 # Test clang-3.7: C++11/C++14, Buidd=Debug/Release, ASAN=On/Off - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=11 ASAN=On LIBCXX=On @@ -103,33 +97,27 @@ matrix: - ubuntu-toolchain-r-test - llvm-toolchain-precise - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On - # os: linux - # addons: *clang37 - - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On - # os: linux - # addons: *clang37 - - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On - # os: linux - # addons: *clang37 - - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang37 - - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang37 - - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang37 - - # - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On - # os: linux - # addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On + os: linux + addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On + os: linux + addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On + os: linux + addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On + os: linux + addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On + os: linux + addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On + os: linux + addons: *clang37 + - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On + os: linux + addons: *clang37 # Test gcc-4.9: C++11, Build=Debug/Release, ASAN=Off - env: GCC_VERSION=4.9 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=Off @@ -142,32 +130,9 @@ matrix: sources: - ubuntu-toolchain-r-test - # - env: GCC_VERSION=4.9 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=Off - # os: linux - # addons: *gcc49 - - # Test gcc-5.0: C++11/14, Build=Debug/Release, ASAN=Off - # - env: GCC_VERSION=5 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=Off - # os: linux - # addons: &gcc5 - # apt: - # packages: - # - gcc-5 - # - valgrind - # sources: - # - ubuntu-toolchain-r-test - - # - env: GCC_VERSION=5 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=Off - # os: linux - # addons: *gcc5 - - # - env: GCC_VERSION=5 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=Off - # os: linux - # addons: *gcc5 - - # - env: GCC_VERSION=5 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=Off - # os: linux - # addons: *gcc5 + - env: GCC_VERSION=4.9 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=Off + os: linux + addons: *gcc49 # Install dependencies before_install: @@ -196,10 +161,12 @@ install: - if [ -n "$CLANG_VERSION" ]; then CXX_FLAGS="${CXX_FLAGS} -D__extern_always_inline=inline"; fi - if [ "$LIBCXX" == "On" ]; then CXX_FLAGS="${CXX_FLAGS} -stdlib=libc++ -I/usr/include/c++/v1/"; fi - if [ "$LIBCXX" == "On" ]; then CXX_LINKER_FLAGS="${CXX_FLAGS} -L/usr/lib/ -lc++"; fi + - CXX_FLAGS="${CXX_FLAGS} -std=${CPP}" # Build examples - cd example - - make CXXFLAGS="${CXX_FLAGS} ${CXX_LINKER_FLAGS}" VERBOSE=1 + - if [ "$BUILD_TYPE" == "Release" ]; then make CXXFLAGS="${CXX_FLAGS} ${CXX_LINKER_FLAGS}" VERBOSE=1; fi + - if [ "$BUILD_TYPE" == "Debug" ]; then make debug CXXFLAGS="${CXX_FLAGS} ${CXX_LINKER_FLAGS}" VERBOSE=1; fi script: - ./example