mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 06:32:06 +08:00
enable debug/release and c++11/14
This commit is contained in:
parent
97d56e7693
commit
48ff5cd341
171
.travis.yml
171
.travis.yml
@ -27,31 +27,28 @@ matrix:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-precise-3.5
|
- llvm-toolchain-precise-3.5
|
||||||
|
|
||||||
# - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On
|
- env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang35
|
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
|
- env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang35
|
addons: *clang35
|
||||||
|
- env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On
|
||||||
# - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On
|
os: linux
|
||||||
# os: linux
|
addons: *clang35
|
||||||
# addons: *clang35
|
- env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On
|
||||||
|
os: linux
|
||||||
# Uncomment these to test without AddressSanitizer
|
addons: *clang35
|
||||||
# - env: CLANG_VERSION=3.5 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On
|
- env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang35
|
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
|
# 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
|
- env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=11 ASAN=On LIBCXX=On
|
||||||
@ -65,31 +62,28 @@ matrix:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-precise-3.6
|
- llvm-toolchain-precise-3.6
|
||||||
|
|
||||||
# - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On
|
- env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang36
|
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
|
- env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang36
|
addons: *clang36
|
||||||
|
- env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On
|
||||||
# - env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On
|
os: linux
|
||||||
# os: linux
|
addons: *clang36
|
||||||
# addons: *clang36
|
- env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On
|
||||||
|
os: linux
|
||||||
# Uncomment these to test without AddressSanitizer
|
addons: *clang36
|
||||||
# - env: CLANG_VERSION=3.6 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On
|
- env: CLANG_VERSION=3.6 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang36
|
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
|
# 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
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=11 ASAN=On LIBCXX=On
|
||||||
@ -103,33 +97,27 @@ matrix:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-precise
|
- llvm-toolchain-precise
|
||||||
|
|
||||||
# - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=On LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang37
|
addons: *clang37
|
||||||
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On
|
||||||
# - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=On LIBCXX=On
|
os: linux
|
||||||
# os: linux
|
addons: *clang37
|
||||||
# addons: *clang37
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On
|
||||||
|
os: linux
|
||||||
# - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=On LIBCXX=On
|
addons: *clang37
|
||||||
# os: linux
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On
|
||||||
# addons: *clang37
|
os: linux
|
||||||
|
addons: *clang37
|
||||||
# - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=On
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *clang37
|
addons: *clang37
|
||||||
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On
|
||||||
# - env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=On
|
os: linux
|
||||||
# os: linux
|
addons: *clang37
|
||||||
# addons: *clang37
|
- env: CLANG_VERSION=3.7 BUILD_TYPE=Release CPP=14 ASAN=Off LIBCXX=On
|
||||||
|
os: linux
|
||||||
# - env: CLANG_VERSION=3.7 BUILD_TYPE=Debug CPP=14 ASAN=Off LIBCXX=On
|
addons: *clang37
|
||||||
# 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
|
# 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
|
- env: GCC_VERSION=4.9 BUILD_TYPE=Debug CPP=11 ASAN=Off LIBCXX=Off
|
||||||
@ -142,32 +130,9 @@ matrix:
|
|||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
# - env: GCC_VERSION=4.9 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=Off
|
- env: GCC_VERSION=4.9 BUILD_TYPE=Release CPP=11 ASAN=Off LIBCXX=Off
|
||||||
# os: linux
|
os: linux
|
||||||
# addons: *gcc49
|
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
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
before_install:
|
before_install:
|
||||||
@ -196,10 +161,12 @@ install:
|
|||||||
- if [ -n "$CLANG_VERSION" ]; then CXX_FLAGS="${CXX_FLAGS} -D__extern_always_inline=inline"; fi
|
- 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_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
|
- if [ "$LIBCXX" == "On" ]; then CXX_LINKER_FLAGS="${CXX_FLAGS} -L/usr/lib/ -lc++"; fi
|
||||||
|
- CXX_FLAGS="${CXX_FLAGS} -std=${CPP}"
|
||||||
|
|
||||||
# Build examples
|
# Build examples
|
||||||
- cd example
|
- 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:
|
script:
|
||||||
- ./example
|
- ./example
|
||||||
|
Loading…
Reference in New Issue
Block a user