[CI] Require C++14 on travis

This commit is contained in:
Alexander Grund 2020-07-12 14:52:28 +02:00
parent 9c4354314e
commit 074c82315c
No known key found for this signature in database
GPG key ID: E92C451FC21EF13F
2 changed files with 4 additions and 5 deletions

View file

@ -18,10 +18,9 @@ branches:
env:
- CXX_STANDARD=c++17 BRANCH_TO_TEST=master
- CXX_STANDARD=c++14 BRANCH_TO_TEST=master
- CXX_STANDARD=c++11 BRANCH_TO_TEST=master
- CXX_STANDARD=c++11 BRANCH_TO_TEST=boost-1.58.0
- CXX_STANDARD=c++11 BRANCH_TO_TEST=boost-1.59.0
- CXX_STANDARD=c++11 BRANCH_TO_TEST=boost-1.67.0
- CXX_STANDARD=c++14 BRANCH_TO_TEST=boost-1.58.0
- CXX_STANDARD=c++14 BRANCH_TO_TEST=boost-1.59.0
- CXX_STANDARD=c++14 BRANCH_TO_TEST=boost-1.67.0
compiler:
- clang

View file

@ -14,7 +14,7 @@ endif()
# Enable warnings
option(TURTLE_WERROR "Treat warnings as errors" ON)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(TurtleTestMain INTERFACE -Wall -Wextra -pedantic -Wno-long-long)
target_compile_options(TurtleTestMain INTERFACE -Wall -Wextra -pedantic)
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-Wunused-function TURTLE_CXX_UNUSED_FUNCTION)
if(TURTLE_CXX_UNUSED_FUNCTION)