mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-25 22:55:59 +03:00
Fix commit count in travis' build
This commit is contained in:
parent
9fdc5b4b9d
commit
dd3f5a146d
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
language: android
|
||||
android:
|
||||
components:
|
||||
- tools
|
||||
- platform-tools
|
||||
- tools
|
||||
- build-tools-26.0.1
|
||||
- android-26
|
||||
- extra-android-m2repository
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
git fetch --unshallow #required for commit count
|
||||
|
||||
if [ -z "$TRAVIS_TAG" ]; then
|
||||
./gradlew clean buildStandardDebug
|
||||
|
||||
git fetch --unshallow #required for commit count
|
||||
COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||
export ARTIFACT="tachiyomi-r${COMMIT_COUNT}.apk"
|
||||
|
||||
|
|
Loading…
Reference in a new issue