Created
April 6, 2018 06:56
-
-
Save tjkang/5e8b3e5f6a43964d7c665c922b940bae to your computer and use it in GitHub Desktop.
yml for android with circleci 2.0(dropbox)
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
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 |
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
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