forked from klikaba/android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.overcommit.yml
29 lines (24 loc) · 837 Bytes
/
.overcommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CommitMsg:
AddTicketId:
enabled: true
PreCommit:
KtLint:
enabled: true
description: 'Analyze with KtLint'
required_executable: 'ktlint'
flags: []
include: '**/*.kt'
install_command: 'brew install ktlint'
PrePush:
# This uses pre-push hook for ruby, but changes command to actually be gradle
# Implementation of these hooks does nothing special, and would be same if GradleTest were implemented
TestUnit:
enabled: true
description: 'Run gradle test suite'
command: ['./gradlew', ':app:testDebugUnitTest']
PostCheckout:
ALL: # Special hook name that customizes all hooks of this type
quiet: true # Change all post-checkout hooks to only display output on failure
IndexTags:
enabled: true # Generate a tags file with `ctags` each time HEAD changes
verify_signatures: false