Created
April 29, 2017 19:47
-
-
Save InNoobWeTrust/e78f877b2cc0e9081dcf78c08f88fd15 to your computer and use it in GitHub Desktop.
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/your-repository-name-here/app/build/outputs/apk/ | |
machine: | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"' | |
_JAVA_OPTIONS: "-Xms512m -Xmx1024m" | |
java: | |
version: oraclejdk8 | |
dependencies: | |
pre: | |
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-25 | |
- echo y | android update sdk --no-ui --all --filter build-tools-25.0.3 | |
- echo y | android update sdk --no-ui --all --filter android-25 | |
- echo y | android update sdk --no-ui --all --filter tools | |
- echo y | android update sdk --no-ui --all --filter extra-android-m2repository | |
- echo y | android update sdk --no-ui --all --filter extra-android-support | |
- echo y | android update sdk --no-ui --all --filter extra-google-google_play_services | |
- echo y | android update sdk --no-ui --all --filter extra-google-m2repository | |
override: | |
- chmod +x gradlew | |
- mkdir "$ANDROID_HOME/licenses" || true | |
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license" | |
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license" | |
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies | |
test: | |
override: | |
- (./gradlew assemble): | |
timeout: 360 | |
# copy the build outputs to artifacts | |
- cp -r app/build/outputs $CIRCLE_ARTIFACTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment