Skip to content

Instantly share code, notes, and snippets.

@tjkang
Created April 6, 2018 06:56
Show Gist options
  • Save tjkang/5e8b3e5f6a43964d7c665c922b940bae to your computer and use it in GitHub Desktop.
Save tjkang/5e8b3e5f6a43964d7c665c922b940bae to your computer and use it in GitHub Desktop.
yml for android with circleci 2.0(dropbox)
version: 2
jobs:
android:
working_directory: ~/project
environment:
GRADLE_PROPERTIES_URL: https://www.dropbox.com/s/..../gradle.properties?dl=0
KEYSTORE_DOWNLOAD_URL: https://www.dropbox.com/s/..../my-release-key.keystore?dl=0
docker:
- image: circleci/android:api-27-node8-alpha
steps:
- checkout:
path: ~/project
- attach_workspace:
at: ~/project
- run:
name: Set Ruby Version
command: echo "ruby-2.4" > ~/.ruby-version
- run: sh .circleci/download.sh
- run: mkdir -p ~/.gradle && cp gradle.properties ~/.gradle && cp my-release-key.keystore ./android/app
- run: cd android && bundle install
- run: cd android && bundle exec fastlane beta
- persist_to_workspace:
root: ~/project
paths:
- node_modules
curl -L -o gradle.properties ${GRADLE_PROPERTIES_URL}
curl -L -o my-release-key.keystore ${KEYSTORE_DOWNLOAD_URL}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment