Skip to content

Instantly share code, notes, and snippets.

@t-kashima
Created April 2, 2017 13:25
Show Gist options
  • Save t-kashima/5b588be52fde061900e89dbf1abff990 to your computer and use it in GitHub Desktop.
Save t-kashima/5b588be52fde061900e89dbf1abff990 to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
working_directory: ~/working_directory
docker:
- image: beevelop/android:latest
environment:
ANDROID_HOME: /opt/android
steps:
- checkout
- run:
name: System information
command: |
mkdir $ANDROID_HOME/licenses
echo [ANDROID_SDK_LICENSE] >> $ANDROID_HOME/licenses/android-sdk-license
echo y | android update sdk --no-ui --all --filter "build-tools-25.0.2"
echo y | android update sdk --no-ui --all --filter "extra-android-m2repository,extra-google-m2repository"
- run:
name: Install dependencies
command: ./gradlew dependencies
- run:
name: Build
command: ./gradlew assembleRelease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment