mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-29 19:18:52 +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
|
language: android
|
||||||
android:
|
android:
|
||||||
components:
|
components:
|
||||||
|
- tools
|
||||||
|
- platform-tools
|
||||||
|
- tools
|
||||||
- build-tools-26.0.1
|
- build-tools-26.0.1
|
||||||
- android-26
|
- android-26
|
||||||
- extra-android-m2repository
|
- extra-android-m2repository
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
git fetch --unshallow #required for commit count
|
||||||
|
|
||||||
if [ -z "$TRAVIS_TAG" ]; then
|
if [ -z "$TRAVIS_TAG" ]; then
|
||||||
./gradlew clean buildStandardDebug
|
./gradlew clean buildStandardDebug
|
||||||
|
|
||||||
git fetch --unshallow #required for commit count
|
|
||||||
COMMIT_COUNT=$(git rev-list --count HEAD)
|
COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
export ARTIFACT="tachiyomi-r${COMMIT_COUNT}.apk"
|
export ARTIFACT="tachiyomi-r${COMMIT_COUNT}.apk"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue