mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
enable debug/release and c++11/14
This commit is contained in:
parent
1b31c8cab4
commit
3e2364bb57
171
.travis.yml
171
.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
|
||||
|
Loading…
Reference in New Issue
Block a user