-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
executable file
·26 lines (23 loc) · 1.01 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
machine:
java:
version: openjdk8
environment:
JAVA_OPTS: "-Xmx2048m -XX:MaxPermSize=1024m"
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tool,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository,android-24
- echo y | android update sdk --no-ui --all --filter build-tools-24.0.2
- echo y | android update sdk -u -a -t sys-img-armeabi-v7a-android-23
- echo n | android create avd -n testing -f -t android-23 -b armeabi-v7a
deployment:
production:
branch: master
commands:
- ./gradlew assembleProductionRelease
- cp -r app/build/outputs/apk $CIRCLE_ARTIFACTS
beta:
branch: develop
commands:
- ./gradlew assembleProductionDebug
- cp -r app/build/outputs $CIRCLE_ARTIFACTS
- curl -F "file=@app/build/outputs/apk/app-production-debug.apk" -F "token=${DEPLOY_GATE_API_KEY}" -F "message=Deploy from CircleCI." https://deploygate.com/api/users/${DEPLOY_GATE_USER}/apps