mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(app): install git pre-commit hook via cmake
This commit is contained in:
parent
bed7615605
commit
18f380a4f1
2 changed files with 16 additions and 0 deletions
|
|
@ -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})
|
||||
|
|
|
|||
5
tests/tools/private/pre-commit
Executable file
5
tests/tools/private/pre-commit
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
sh "./tests/tools/check_qml"
|
||||
|
||||
exit $?
|
||||
Loading…
Add table
Reference in a new issue