[FIREBASE] App Distribution (#14)

* Wrong path to Service Account

* Run Unit test on pr and on branch
This commit is contained in:
Cedrick Flocon 2019-11-05 15:06:57 +01:00 committed by GitHub
parent 1ec669db9d
commit b3191ae337
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -6,8 +6,8 @@ then
tar xvf .travis/secrets.tar
mv google-services.json app/google-services.json
mv upload_keystore.keystore app/release_keystore.keystore
mv home-assistant-mobile-apps-5fd6b9dd0fdb.json app/firebaseAppDistributionServiceCredentialsFile.json
mv home-assistant-mobile-apps-0b13292f44c4.json app/playStorePublishServiceCredentialsFile.json
mv home-assistant-mobile-apps-5fd6b9dd0fdb.json firebaseAppDistributionServiceCredentialsFile.json
else
mv .travis/mock-google-services.json app/google-services.json
fi

View file

@ -3,6 +3,8 @@
echo $TRAVIS_COMMIT_MESSAGE > CHANGES.md
export VERSION_CODE=`git rev-list --count HEAD`
./gradlew testReleaseUnitTest
if [ "$TRAVIS_PULL_REQUEST" = "false" ]
then
if [ "$TRAVIS_BRANCH" = "master" ]
@ -14,6 +16,4 @@ then
./gradlew publishReleaseBundle
fi
fi
else
./gradlew testReleaseUnitTest
fi