forked from forcedotcom/SalesforceMobileSDK-Android
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yml
More file actions
66 lines (56 loc) · 2.3 KB
/
Copy pathconfig.yml
File metadata and controls
66 lines (56 loc) · 2.3 KB
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
version: 2
jobs:
build:
docker:
- image: brandonpage/salesforce-mobilesdk-android-docker-primary:0.0.3
working_directory: ~/SalesforceMobileSDK-Android
environment:
- TERM: "dumb"
- ADB_INSTALL_TIMEOUT: 10
- ANDROID_NDK: '/opt/ndk/android-ndk-r10e'
- BUILD_THREADS: 2
steps:
- run:
name: Launch Emulator
# name should be env variable
#command: emulator64-arm -avd test22 -no-audio -no-window -no-boot-anim -gpu off
command: emulator -avd test23 -no-audio -no-window -no-boot-anim -gpu off
background: true
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "build.gradle" }}
- run:
name: Download Dependencies
command: ./install.sh && ./gradlew androidDependencies && ./gradlew dependencies
- save_cache:
paths:
- ~/.gradle
- node_modules
key: jars-{{ checksum "build.gradle" }}-{{ checksum "build.gradle" }}
- run:
name: Wait for Emulator to boot
command: source .circleci/ci-helper.sh && waitForAVD
- run:
name: Run Tests
halt_build_on_fail: false
command: ./gradlew :libs:SalesforceAnalytics:connectedAndroidTest :libs:SmartStore:connectedAndroidTest :libs:SmartSync:connectedAndroidTest :libs:SalesforceHybrid:connectedAndroidTest :libs:SalesforceReact:assembleDebug -p . --continue --no-daemon --profile --max-workers 2
no_output_timeout: 900
- store_artifacts:
path: ./build/archives
destination: archives
- store_artifacts:
path: ./build/reports
destination: reports
- store_artifacts:
path: ./build/outputs
destination: outputs
- store_artifacts:
path: ./build/outputs/androidTest-results/connected/
- store_artifacts:
path: libs/SmartSync/build/reports/androidTests/connected/index.html
- store_test_results:
path: libs/SmartSync/build/reports/androidTests/connected/index.html
- store_artifacts:
path: libs/SalesforceHybrid/build/reports/androidTests/connected/index.html
- store_test_results:
path: libs/SalesforceHybrid/build/reports/androidTests/connected/index.html