mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-11-22 05:36:05 -06:00
Add githook plugin (#398)
This commit is contained in:
parent
6175081b88
commit
1d9a49d552
@ -6,6 +6,7 @@ apply plugin: 'io.fabric'
|
||||
apply plugin: 'com.github.triplet.play'
|
||||
apply from: 'jacoco.gradle'
|
||||
apply from: 'sonarqube.gradle'
|
||||
apply from: 'hooks.gradle'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
|
10
app/hooks.gradle
Normal file
10
app/hooks.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
apply plugin: "com.star-zero.gradle.githook"
|
||||
|
||||
githook {
|
||||
failOnMissingHooksDir = false
|
||||
hooks {
|
||||
"pre-push" {
|
||||
shell = "./app/play-publish-lint.sh"
|
||||
}
|
||||
}
|
||||
}
|
7
app/play-publish-lint.sh
Executable file
7
app/play-publish-lint.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash -
|
||||
|
||||
content=$(cat < "app/src/main/play/release-notes/pl-PL/default.txt") || exit
|
||||
if [[ "${#content}" -gt 500 ]]; then
|
||||
echo >&2 "Release notes content has reached the limit of 500 characters"
|
||||
exit 1
|
||||
fi
|
@ -2,7 +2,7 @@ Wersja 0.9.0
|
||||
|
||||
Dodaliśmy:
|
||||
- zarządzanie dostępem mobilnym do dziennika
|
||||
- wyświetlanie sumy punktów (jeśli dziennik obsługuje)
|
||||
- wyświetlanie sumy punktów
|
||||
- wyświetlanie informacji o wygasłej sesji, gdy zostanie zmienione hasło
|
||||
|
||||
Naprawiliśmy:
|
||||
|
@ -14,6 +14,7 @@ buildscript {
|
||||
classpath "io.fabric.tools:gradle:1.29.0"
|
||||
classpath "com.github.triplet.gradle:play-publisher:2.2.1"
|
||||
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1"
|
||||
classpath "gradle.plugin.com.star-zero.gradle:githook:1.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user