-
Notifications
You must be signed in to change notification settings - Fork 11
/
circle.yml
51 lines (51 loc) · 1.58 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: 2
jobs:
build:
docker:
- image: circleci/android:api-26-alpha
working_directory: ~/bigbang
environment:
JVM_OPTS: -Xmx3200m
resource_class: large
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Build
command: ./gradlew clean install
--no-daemon -Pkotlin.incremental=false --max-workers=2
- run:
name: Assemble modules
command: ./gradlew :core:assembleDebug
:dbflow:assembleDebug
:instrumental-test:assembleDebug
:log-crashlytics:assembleDebug
:mvp:assembleDebug
:retrofit:assembleDebug
:ui:assembleDebug
--max-workers=2
- run:
name: Assemble instrumental tests
command: ./gradlew assembleAndroidTest
--max-workers=2
- run:
name: Run Tests
command: ./gradlew test
lint
--max-workers=2
- run:
name: Compile App Module
command: ./gradlew :app:compileLollipopAndAboveProductionReleaseSources --max-workers=1
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results