-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
32 lines (29 loc) · 1.4 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
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
_JAVA_OPTIONS: "-Xms512m -Xmx2048m"
java:
version: oraclejdk8
dependencies:
pre:
- echo -n "" > /home/ubuntu/.gradle/gradle.properties
- source environmentSetup.sh && copyEnvVarsToGradleProperties
- mv /home/ubuntu/Knife/app/google-services-sample.json /home/ubuntu/Knife/app/google-services.json
- echo -n "" > /home/ubuntu/Knife/app/google-services.json
- source playServiceSetups.sh && copyPlayServiceVarsToPlayFolder
- mv /home/ubuntu/Knife/.play/knife-sample.json /home/ubuntu/Knife/.play/knife.json
- echo -n "" > /home/ubuntu/Knife/.play/knife.json
- source firebaseSetups.sh && copyFirebaseVarsToPlayFolder
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-28.0.3,android-28,extra-google-m2repository,extra-google-google_play_services,extra-android-support,extra-android-m2repository
- git log --pretty=format:'+ %s' -n 14 | grep -v "Merge\|release\|Update circle\|Update build" > change.log
override:
- ./gradlew dependencies --daemon
test:
override:
- ./gradlew test
deployment:
testing:
branch: [development, master]
commands:
- ./gradlew -Pcom.android.build.threadPoolSize=3 assembleRelease publishApkProductionRelease