forked from mohsenoid/marvel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
51 lines (45 loc) · 1.81 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
48
49
50
51
#
# Build configuration for Circle CI
#
machine:
java:
version: openjdk8
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools,platform-tools,android-25"
- echo y | android update sdk --no-ui --all --filter "build-tools-25.0.0"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository,extra-google-google_play_services,extra-google-m2repository"
test:
# pre:
# - android list targets
# # create the emulator
# - echo no | android create avd --force -n testemulator -t "android-23" --abi armeabi-v7a
# - echo 'vm.heapSize=512' >> ~/.android/avd/testemulator.ini
# - echo 'hw.ramSize=1024' >> ~/.android/avd/testemulator.ini
# - cat ~/.android/avd/testemulator.ini
# # start the emulator
# - emulator -avd testemulator -no-audio -no-window :
# background: true
# parallel: true
# # wait for the emulator to have booted
# - circle-android wait-for-boot
# # unlock the emulator and disable animations and sleep mode
# - adb shell input keyevent 82
# - adb shell svc power stayon true
# - adb shell settings put global window_animation_scale 0
# - adb shell settings put global transition_animation_scale 0
# - adb shell settings put global animator_duration_scale 0
override:
- (./gradlew assemble):
timeout: 360
post:
# copy the build outputs to artifacts
- cp -r app/build/outputs/ $CIRCLE_ARTIFACTS
# - cp -r app/build/outputs/androidTest-results/ $CIRCLE_TEST_REPORTS
# - cp -r app/build/test-results/ $CIRCLE_TEST_REPORTS
- cp -r core-lib/build/libs/ $CIRCLE_ARTIFACTS
# - cp -r core-lib/build/test-results/ $CIRCLE_TEST_REPORTS
# send report to codecov.io
# - bash <(curl -s https://codecov.io/bash)