Skip to content

Instantly share code, notes, and snippets.

@jedsada-gh
Created September 29, 2019 07:52
Show Gist options
  • Save jedsada-gh/4a9c603f498f4dc37ee10a34a771de3e to your computer and use it in GitHub Desktop.
Save jedsada-gh/4a9c603f498f4dc37ee10a34a771de3e to your computer and use it in GitHub Desktop.
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-29-node
steps:
- checkout
- restore_cache:
name: Restore Cache Gradle
keys:
- jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- jars-
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- run:
name: Install Firebase CLI
command: sudo npm install -g firebase-tools
- save_cache:
name: Save Cache Gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
paths:
- ~/.gradle
- restore_cache:
name: Restore Cache Gems
keys:
- v3-gems-{{ checksum "Gemfile.lock" }}
- v3-gems-
- run:
name: Bundle Install
command: bundle install --path vendor/bundle
- save_cache:
name: Save Cache Gems
key: v3-gems-{{ checksum "Gemfile.lock" }}
paths: vendor/bundle
- run:
name: Fastlane Build Application
command: bundle exec fastlane build
- deploy:
name: Fastlane Deploy Application
command: bundle exec fastlane deploy_firebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment