Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improved fastlane usage and scripts #457

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

adityastic
Copy link
Collaborator

Fixes #455

Changes:

  • improved scripts and fastlane usage

if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "fossasia/badge-magic-android" ] || ! [ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" -o "$TRAVIS_BRANCH" == "$PUBLISH_BRANCH" ]; then
echo "We decrypt key only for pushes to the master or development branch and not PRs. So, skip."
# Check if it is not a Pull Request Build
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "fossasia/badge-magic-android" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will decrypt key for all branches

if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "fossasia/badge-magic-android" ] || ! [ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" -o "$TRAVIS_BRANCH" == "$PUBLISH_BRANCH" ]; then
echo "We upload apk only for changes in development or master, and not PRs. So, let's skip this shall we ? :)"
# Check if it is not a Pull Request Build
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "fossasia/badge-magic-android" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link
Member

@iamareebjamal iamareebjamal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please just do the simple change first so we can move forward. Other optimizations can be done later

@adityastic adityastic force-pushed the fastlane-fix branch 4 times, most recently from 0562dc1 to 6cf0027 Compare July 28, 2019 16:59
@adityastic
Copy link
Collaborator Author

@iamareebjamal have a look

@@ -12,7 +12,9 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_REPO_SLUG" != "fossasia/badge
exit 0
fi

./gradlew bundleRelease
if [[ "$TRAVIS_BRANCH" != "$PUBLISH_BRANCH" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We always want to build aab

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, I've removed the unsigned and unaligned conditions as well as they are not being created

@iamareebjamal iamareebjamal merged commit c8ae8c6 into fossasia:development Jul 29, 2019
@adityastic adityastic deleted the fastlane-fix branch August 4, 2019 08:42
@adityastic adityastic self-assigned this Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve fastlane usage and scripts
2 participants