Created
May 30, 2016 14:37
-
-
Save erdemolkun/88d153616eff28c884da4baf479794a5 to your computer and use it in GitHub Desktop.
Circle CI Android Yml
This file contains 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
# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/starbucks-android/app/build/outputs/apk/ | |
machine: | |
timezone: | |
Europe/Istanbul # Set the timezone | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
#Pull any submodules | |
checkout: | |
post: | |
- git submodule init | |
- git submodule update | |
dependencies: | |
pre: | |
- ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter "tools,platform-tools,android-23,extra-google-m2repository,extra-android-m2repository,extra-android-support" | |
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3" | |
test: | |
override: | |
- (./gradlew testAlphaUnitTest): | |
timeout: 360 | |
#Deploy when tests pass | |
deployment: | |
develop: # Alpha builds. | |
branch: develop | |
commands: | |
- ./gradlew assembleAlpha --stacktrace | |
- ./circle_ci_deploy.sh $HOCKEY_APP_ID_ALPHA app-alpha.apk | |
uat: # UAT builds. | |
branch: uat | |
commands: | |
- ./gradlew assembleUat --stacktrace | |
- ./circle_ci_deploy.sh $HOCKEY_APP_ID_UAT app-uat.apk | |
staging: # Beta builds. | |
branch: staging | |
commands: | |
- ./gradlew assembleBeta --stacktrace | |
- ./circle_ci_deploy.sh $HOCKEY_APP_ID_BETA app-beta.apk true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment