Commit 18f380a4 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(app): install git pre-commit hook via cmake

parent bed76156
......@@ -75,6 +75,17 @@ PREPEND(SOURCES "${CMAKE_SOURCE_DIR}/")
PREPEND(HEADERS "${CMAKE_SOURCE_DIR}/")
PREPEND(QRC_RESOURCES "${CMAKE_SOURCE_DIR}/")
# --------------------------------------------------------------------
# Init git hooks.
# --------------------------------------------------------------------
execute_process(COMMAND ${CMAKE_COMMAND} -E copy
"${CMAKE_SOURCE_DIR}/tools/private/pre-commit"
"${CMAKE_SOURCE_DIR}/../.git/hooks/pre-commit"
)
# --------------------------------------------------------------------
# Build.
# --------------------------------------------------------------------
find_package(Qt5 COMPONENTS ${QT5_PACKAGES})
......
#!/usr/bin/sh
sh "./tests/tools/check_qml"
exit $?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment