-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
48 lines (46 loc) · 1.63 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
#
# Build configuration for Circle CI
#
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-30
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}-{{ checksum "dnssd/build.gradle" }}-{{ checksum "rxdnssd/build.gradle" }}-{{ checksum "rx2dnssd/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}-{{ checksum "dnssd/build.gradle" }}-{{ checksum "rxdnssd/build.gradle" }}-{{ checksum "rx2dnssd/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew check
- store_artifacts:
path: dnssd/build/reports/
destination: dnssd-reports
- store_test_results:
path: dnssd/build/test-results
destination: dnssd-tests
- store_artifacts:
path: rxdnssd/build/reports/
destination: rxdnssd-reports
- store_test_results:
path: rxdnssd/build/test-results
destination: rxdnssd-tests
- store_artifacts:
path: rx2dnssd/build/reports/
destination: rx2dnssd-reports
- store_test_results:
path: rx2dnssd/build/test-results
destination: rx2dnssd-tests