diff --git a/.appveyor.yml b/.appveyor.yml index 6329d24..816f16d 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -18,7 +18,9 @@ build_script: - conan create . CLIUtils/CLI11 test_script: + - cd build - ctest --output-on-failure -C Debug + - tests\OptionalTest notifications: - provider: Webhook diff --git a/.ci/make_and_test.sh b/.ci/make_and_test.sh index 2ba81ae..9d76a03 100755 --- a/.ci/make_and_test.sh +++ b/.ci/make_and_test.sh @@ -15,6 +15,7 @@ echo "Testing..." set -evx ctest --output-on-failure +./tests/OptionalTest set +evx echo -en "travis_fold:end:script.test\\r" diff --git a/CMakeLists.txt b/CMakeLists.txt index de2f8ae..53c187c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) if(MSVC) add_definitions("/W4") else() - add_definitions(-Wall -Wextra -pedantic) + add_definitions(-Wall -Wextra -pedantic -Wno-deprecated-declarations) endif() if(CMAKE_VERSION VERSION_GREATER 3.6) diff --git a/include/CLI/Option.hpp b/include/CLI/Option.hpp index 6985308..0cb1033 100644 --- a/include/CLI/Option.hpp +++ b/include/CLI/Option.hpp @@ -309,7 +309,7 @@ class Option : public OptionBase