Skip to content

Instantly share code, notes, and snippets.

@dazza5000
Last active June 23, 2018 15:02
Show Gist options
  • Select an option

  • Save dazza5000/0a807de012c7281f14787cf30bf7be0e to your computer and use it in GitHub Desktop.

Select an option

Save dazza5000/0a807de012c7281f14787cf30bf7be0e to your computer and use it in GitHub Desktop.
CircleCI Android Configuration Template - circle.yml
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: |
sudo chmod +x gradlew
./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Build Debug
command: ./gradlew assembleProdDebug
- store_artifacts:
path: app/build/outputs/apk/prod/debug/app-prod-debug.apk
destination: app-prod-debug.apk
- run:
name: Uploading on Beta
command: ./gradlew crashlyticsUploadDistributionProdDebug
@CrandellWS

CrandellWS commented Feb 16, 2017

Copy link
Copy Markdown

@benhaxe

benhaxe commented Apr 11, 2018

Copy link
Copy Markdown

What will the windows version own look like

@benhaxe

benhaxe commented Apr 11, 2018

Copy link
Copy Markdown

What windows code look like

@dazza5000

Copy link
Copy Markdown
Author

You will probably need to update the directory structure to use windows paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment