From dd3f5a146d594fd810f6c3d6565c2f79803d3716 Mon Sep 17 00:00:00 2001 From: len Date: Sat, 30 Sep 2017 20:40:44 +0200 Subject: [PATCH] Fix commit count in travis' build --- .travis.yml | 3 +++ .travis/build.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c47623351..14286a19e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: android android: components: + - tools + - platform-tools + - tools - build-tools-26.0.1 - android-26 - extra-android-m2repository diff --git a/.travis/build.sh b/.travis/build.sh index 44652530a..ab5dad7bf 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -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"