Fix commit count in travis' build

This commit is contained in:
len 2017-09-30 20:40:44 +02:00
parent 9fdc5b4b9d
commit dd3f5a146d
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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"