-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
44 lines (38 loc) · 1.67 KB
/
Copy pathcircle.yml
File metadata and controls
44 lines (38 loc) · 1.67 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
machine:
environment:
JAVA_HOME: /usr/lib/jvm/jdk1.8.0
ANDROID_HOME: /usr/local/android-sdk-linux
checkout:
post:
- git submodule init
- git submodule update
dependencies:
pre:
- echo "sdk.dir="$ANDROID_HOME > local.properties
- echo $JKS_BASE64 | base64 --decode > CWPoemDev.jks
- echo $RELEASE_KEYS_BASE64 | base64 --decode > releasekeys.json
override:
- echo y | android update sdk --no-ui --all --filter tools
- echo y | android update sdk --no-ui --all --filter android-24
- echo y | android update sdk --no-ui --all --filter extra-android-m2repository,extra-android-support
- echo y | android update sdk --no-ui --all --filter extra-google-m2repository,extra-google-google_play_services
- echo y | android update sdk --no-ui --all --filter build-tools-24.0.0
- ./gradlew dependencies
test:
override:
- ./gradlew assembleRelease --stacktrace -Pcom.android.build.threadPoolSize=1 -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms512m -Xmx2048m" -Dorg.gradle.daemon=false
deployment:
# develop:
# branch: develop
# commands:
# - find . -name app-debug.apk -exec mv {} ./app-debug.apk \;
# - 'curl --request PUT -H "Authorization: Bearer $DROPBOX_TOKEN" https://api-content.dropbox.com/1/files_put/auto/ -T app-debug.apk'
#
#
master:
branch: master
commands:
- find . -name app-release.apk -exec mv {} ./app-release.apk \;
- 'curl --request PUT -H "Authorization: Bearer $DROPBOX_TOKEN" https://api-content.dropbox.com/1/files_put/auto/ -T app-release.apk'
- ./gradlew publishApkRelease
- ./circle.git-tag-push.sh `grep versionCode app/build.gradle | awk '{print $2}'`