-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
47 lines (45 loc) · 1.65 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
---
dependencies:
cache_directories:
- ~/.android
- /usr/local/android-sdk-linux/platforms/android-25
- /usr/local/android-sdk-linux/build-tools/25.0.0
- /usr/local/android-sdk-linux/extras/android/m2repository
override:
- "./gradlew app:dependencies"
pre:
- "echo y | android -s update sdk -u -a -t \"tools\""
- "mkdir -p $ANDROID_HOME/licenses"
- "echo -e \"8933bad161af4178b1185d1a37fbf41ea5269c55\" > $ANDROID_HOME/licenses/android-sdk-license"
- "echo -e \"84831b9409646a918e30573bab4c9c91346d8abd\" > $ANDROID_HOME/licenses/android-sdk-preview-license"
- "$ANDROID_HOME/tools/bin/sdkmanager \"platform-tools\" \"extras;android;m2repository\" \"extras;google;m2repository\""
- "$ANDROID_HOME/tools/bin/sdkmanager \"extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2\""
- "$ANDROID_HOME/tools/bin/sdkmanager \"extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2\""
deployment:
assembleDebug:
branch: /staging_.*/
commands:
- "./gradlew clean"
assembleProd:
branch: master
commands:
- "./gradlew assembleRelease"
- "cp -r app/build/outputs $CIRCLE_ARTIFACTS"
general:
artifacts:
- /home/ubuntu/AndroidCI/app/build/outputs/apk/
branches:
only:
- master
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: "-Dorg.gradle.parallel=false -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=\"-Xmx1560m -XX:+HeapDumpOnOutOfMemoryError\""
JAVA_OPTS: "-Xms512m -Xmx1024m"
REVIEWDOG_VERSION: "0.9.3"
TERM: dumb
java:
version: oraclejdk8
test:
override:
- "./gradlew clean"