-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml.back
executable file
·37 lines (33 loc) · 1.31 KB
/
circle.yml.back
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
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
test:
pre:
- emulator -avd testing -no-audio -no-window:
background: true
parallel: true
- circle-android wait-for-boot
- sleep 90
override:
- ./gradlew connectedAndroidTest -PdisablePreDex
- cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
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