diff --git a/.travis.yml b/.travis.yml index e4e5a0b9f..507248a99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ script: - mkdir _build - cd _build - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS - - cmake --build . --target submodules install - - ctest -V . + - make submodules all + - ./libgit2_clar # Run Tests after_script: diff --git a/CMakeLists.txt b/CMakeLists.txt index dbb11d236..43b405d4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -235,6 +235,7 @@ INSTALL(FILES include/git2.h DESTINATION ${INCLUDE_INSTALL_DIR} ) ADD_CUSTOM_TARGET( submodules COMMAND git submodule update --init tests-clar/clar + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) # Tests