-
Notifications
You must be signed in to change notification settings - Fork 14
/
circle.yml
34 lines (29 loc) · 924 Bytes
/
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
# Build configuration file for Circle CI
# needs to be named `circle.yml` and should be in the top level dir of the repo
general:
artifacts:
- "~/build_output.zip" # Save APK's, Lint Results, and Test Results
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
java:
version: oraclejdk8
dependencies:
cache_directories:
- ~/.android
- ~/android
override:
- (echo "Downloading Android SDK v25...")
- (source environmentSetup.sh && getAndroidSDK)
test:
pre:
- $ANDROID_HOME/tools/emulator -avd testAVD -no-skin -no-audio -no-window:
background: true
- (./gradlew assembleDebug):
timeout: 360
- (source environmentSetup.sh && waitForAVD)
override:
- (echo "Running JUnit tests...")
- (./gradlew connectedAndroidTest --info):
timeout: 360
- zip -r ~/build_output.zip app/build/outputs/