Last active
June 8, 2018 04:20
-
-
Save andhikayuana/7cd6faf951b170607d3ac0bcc905e6b4 to your computer and use it in GitHub Desktop.
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
| $ git clone [email protected]:andhikayuana/realm-crud.git |
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
| $ cd /ke/proyek/android | |
| $ git init | |
| $ git add . | |
| $ git commit -m "initiation" |
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
| #!/usr/bin/env bash | |
| LATEST_APK=$(ls -lrt ./app/build/outputs/apk/*.apk | tail -1 | awk -F" " '{ print $9 }') #Pick the latest build apk. | |
| FILE_NAME=$(basename $LATEST_APK .apk)".apk" | |
| BUILD_DATE=`date +%Y-%m-%d` #optional -- For changelog title. | |
| FILE_TITLE=$(basename $LATEST_APK .apk) #optional -- For changelog title. |
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: azabost/android-sdk-27:latest | |
| pipelines: | |
| branches: | |
| master: | |
| - step: | |
| caches: | |
| - gradle | |
| script: | |
| ########## Build versi DEBUG ########## | |
| - ./gradlew assembleDebug | |
| - . ./setup_export.sh | |
| ########## UPLOAD TO BITBUCKET DOWNLOADS ########## | |
| - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"${LATEST_APK}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment