Last active
June 22, 2017 18:14
-
-
Save mohsenoid/579cdf1b78a73738813ae5de71ceceb4 to your computer and use it in GitHub Desktop.
circleci.com Android sample YML file
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
# | |
# Android build configuration for CircleCI.com | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/your-app-name/app/build/outputs/apk/ | |
machine: | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
JAVA6_HOME: /usr/lib/jvm/java-6-openjdk-amd64 | |
java: | |
version: openjdk8 | |
dependencies: | |
override: | |
- echo y | sudo apt-get update | |
- echo y | sudo apt-get install libpango-1.0-0 | |
- echo y | sudo apt-get install openjdk-6-jre | |
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-24.0.3,android-24,extra-google-m2repository,extra-google-google_play_services,extra-android-m2repository,extra-android-support | |
- ANDROID_HOME=/usr/local/android-sdk-linux | |
- mkdir "$ANDROID_HOME/licenses" || true | |
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" | |
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" | |
- echo -e "\nd975f751698a77b662f1254ddbeed3901e976f5a" > "$ANDROID_HOME/licenses/intel-android-extra-license" | |
- ./gradlew dependencies | |
test: | |
override: | |
- (./gradlew assemble): | |
timeout: 360 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment