Last active
August 29, 2015 14:21
-
-
Save mitchwongho/10f1f694b9c83f60c8b1 to your computer and use it in GitHub Desktop.
Android CI with Jenkins
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
| # Android CI with Jenkins | |
| ## Introduction | |
| todo | |
| ## Tools/Plugins | |
| The following is a list of plugins used on Jenkins: | |
| - Android Emulator Plugin | |
| - Bitbucket Approve Plugin | |
| - Bitbucket OAuth Plugin | |
| - Bitbucket Plugin | |
| - Bitbucket PullRequest Builder Plugin | |
| - HockeyApp Plugin | |
| HAX manager required for Android Emulator [Hax Manager](https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager) | |
| ## Description | |
| ### Pull-Request build job | |
| ``` | |
| # Run calabash | |
| echo 'Running Functional Tests' | |
| cd ${WORKSPACE}/LifeQLens/app/src/androidTest | |
| sleep 1 | |
| # setup keystore | |
| echo '{"keystore_location":"../../../lifeq-debug.keystore","keystore_password":"lifeqlink","keystore_alias":"androiddebugkey"}' > .calabash_settings | |
| # run calabash | |
| sleep 1 | |
| calabash-android run ${WORKSPACE}/LifeQLens/app/build/outputs/apk/app-debug.apk --tag @login ADB_DEVICE_ARG=${ANDROID_AVD_DEVICE} | |
| ``` | |
| ``` | |
| # Run gradle-wrapper | |
| cd LifeQLens/ | |
| sleep 1 | |
| ./gradlew -PdebugPasswordStore=lifeqlink -PdebugPasswordKey=lifeqlink clean build | |
| ``` | |
| ### Develop branch build job | |
| todo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment