forked from Austin-Android/austin-feeds-me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
36 lines (36 loc) · 1.2 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: Get properties
command: |
wget http://whereisdarran.com/austinfeedsme.properties
wget http://whereisdarran.com/google-services.json -P base/
wget http://whereisdarran.com/google-services.json -P apk/
- 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