Fix CI errors
This commit is contained in:
parent
8c426ac115
commit
c7b13d89bc
5 changed files with 6 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ install:
|
|||
|
||||
script:
|
||||
- mkdir build/ && cd build/
|
||||
- $CMAKE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -pedantic -Wall -Wextra -Wconversion -Wsign-conversion -Wno-parentheses -Wno-assume" ../ -DCPPAST_TEST_GCOV=$CPPAST_TEST_GCOV -DLLVM_CONFIG_BINARY=$LLVM_CONFIG_BINARY
|
||||
- $CMAKE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -pedantic -Wall -Wextra -Wconversion -Wsign-conversion -Wno-parentheses -Wno-assume" ../ -DCPPAST_TEST_GCOV=$CPPAST_TEST_GCOV -DLLVM_CONFIG_BINARY=$LLVM_CONFIG_BINARY
|
||||
- $CMAKE --build .
|
||||
- if [[ "$LLVM_VERSION" == "4.0" ]]; then ./test/cppast_test \*; else ./test/cppast_test; fi
|
||||
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ build_script:
|
|||
- cmd: cmake --build . -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal
|
||||
|
||||
test_script:
|
||||
- cmd: test\Debug\cppast_test.exe *
|
||||
- cmd: test\Debug\cppast_test.exe * ~cppast
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <cctype>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <process.hpp>
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ add_executable(cppast_test test.cpp test_parser.hpp ${tests})
|
|||
target_include_directories(cppast_test PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_include_directories(cppast_test PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../src)
|
||||
target_link_libraries(cppast_test PUBLIC cppast)
|
||||
target_compile_definitions(cppast_test PUBLIC CPPAST_INTEGRATION_FILE="${CMAKE_CURRENT_SOURCE_DIR}/integration.cpp")
|
||||
target_compile_definitions(cppast_test PUBLIC CPPAST_INTEGRATION_FILE="${CMAKE_CURRENT_SOURCE_DIR}/integration.cpp"
|
||||
CPPAST_COMPILE_COMMANDS="${CMAKE_BINARY_DIR}")
|
||||
set_target_properties(cppast_test PROPERTIES CXX_STANDARD 11)
|
||||
|
||||
enable_testing()
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ TEST_CASE("cppast", "[!hide][integration]")
|
|||
cpp_entity_index idx;
|
||||
simple_file_parser<libclang_parser> parser(type_safe::ref(idx), default_logger());
|
||||
|
||||
libclang_compilation_database database("../");
|
||||
libclang_compilation_database database(CPPAST_COMPILE_COMMANDS);
|
||||
libclang_compile_config config(database, CPPAST_INTEGRATION_FILE);
|
||||
config.fast_preprocessing(true);
|
||||
parse_files(parser, files, config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue