Skip to content

Instantly share code, notes, and snippets.

@CrandellWS
Forked from dazza5000/circle.yml
Last active January 4, 2018 03:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save CrandellWS/870b80478125672cc89ff5a0d8ee389a to your computer and use it in GitHub Desktop.
Save CrandellWS/870b80478125672cc89ff5a0d8ee389a to your computer and use it in GitHub Desktop.
CircleCI Android Configuration Template - circle.yml
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/AndroidApp/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.2
- 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
- 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