Created
May 3, 2017 06:48
-
-
Save kigen/dd94504709d94836bb5ff8d5e888e021 to your computer and use it in GitHub Desktop.
Android bitbucket pipeline config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: uber/android-build-environment:latest | |
pipelines: | |
default: | |
- step: | |
script: | |
- echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a # Grab the Android Support Repo which isn't included in the container | |
- mkdir "${ANDROID_HOME}/licenses" || true | |
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "${ANDROID_HOME}/licenses/android-sdk-license" | |
- ./gradlew assembleRelease | |
# Instructions to setup the next line. https://confluence.atlassian.com/bitbucket/deploy-build-artifacts-to-bitbucket-downloads-872124574.html | |
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"./app/build/outputs/apk/app-release.apk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment