forked from anibalsolon/react-native-background-geolocation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
98 lines (86 loc) · 2.59 KB
/
config.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Android Gradle CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-android/ for more details
# https://github.com/flyve-mdm/android-mdm-agent/blob/develop/.circleci/config.yml
version: 2
reference:
## Workspaces
project_dir: &project_dir
~/mauron85_bgloc
android_config: &android_config
working_directory: ~/mauron85_bgloc/android
docker:
# specify the version you desire here
- image: circleci/android:api-28-alpha
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb
project_checkout: &project_checkout
checkout:
path: *project_dir
submodule_checkout: &submodule_checkout
run:
name: Checkout git submodules
command: git submodule init && git submodule update
gradle_key: &gradle_key
jars-{{ checksum "build.gradle" }}-{{ checksum "lib/build.gradle" }}
restore_gradle_cache: &restore_gradle_cache
restore_cache:
key: *gradle_key
save_gradle_cache: &save_gradle_cache
save_cache:
key: *gradle_key
paths:
- ~/.gradle
- ~/.m2
android_dependencies: &android_dependencies
run:
name: Download Android Dependencies
command: ./gradlew androidDependencies
jobs:
# unit test
build:
<<: *android_config
steps:
- *project_checkout
- *submodule_checkout
- *restore_gradle_cache
- *android_dependencies
- *save_gradle_cache
- run:
name: Run Build
command: ./gradlew build -x lint -x test
# - store_artifacts:
# path: build/reports
# destination: reports
# - store_test_results:
# path: build/test-results
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
# Test Instrumentation with Android 4.1 JELLY_BEAN API 16
test_instrumentation:
<<: *android_config
steps:
- *project_checkout
- *submodule_checkout
- *restore_gradle_cache
- *android_dependencies
- *save_gradle_cache
- run:
name: Create debug apk
command: ./gradlew assembleDebug assembleAndroidTest
- run:
name: Run Tests on Firebase test lab
command: source ../scripts/google_cloud.sh
workflows:
version: 2
build_and_test:
jobs:
- build
- test_instrumentation:
requires:
- build