-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
70 lines (55 loc) · 2.82 KB
/
circle.yml
File metadata and controls
70 lines (55 loc) · 2.82 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Build configuration for Circle CI
#
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
pre:
- sudo add-apt-repository ppa:cwchien/gradle -y
- sudo apt-get update
- sudo apt-get install gradle-2.14.1
- if [ ! -d "/usr/local/android-sdk-linux/platforms/android-22" ]; then echo y | android update sdk --no-ui --all --filter "android-22"; fi
- if [ ! -d "/usr/local/android-sdk-linux/build-tools/25.0.2" ]; then echo y | android update sdk --no-ui --all --filter "build-tools-25.0.2"; fi
- if [ ! -d "/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/design/25.0.0" ]; then echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"; fi
- echo y | android update sdk --no-ui --all --filter "platform-tools, tools"
- echo y | android update sdk --no-ui --all --filter "extra-android-support"
#,sys-img-armeabi-v7a-android-21,extra-google-google_play_services,extra-google-m2repository
- chmod +x gradlew
- echo n | android create avd -n testing -f -t android-22
cache_directories:
- /usr/local/android-sdk-linux/platforms/android-22
- /usr/local/android-sdk-linux/build-tools/25.0.2
- /usr/local/android-sdk-linux/extras/android/m2repository
# override:
# - echo "y" | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-25.0.1,android-25,extra-google-m2repository,extra-google-google_play_services,extra-android-support
# - chmod +x gradlew
# - ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
test:
override:
# start the emulator
- $ANDROID_HOME/tools/emulator -avd testing -no-window -no-boot-anim -no-audio:
background: true
parallel: true
- ./gradlew assembleDebug
# - bin/android-wait-for-emulator
# - bin/run-tests test.namespace
# # run infer
# - ./gradlew clean
# - infer -i -- ./gradlew build
# # wait for it to have booted
# - circle-android wait-for-boot
# # run tests against the emulator.
# - ./gradlew connectedAndroidTest
# # copy the build outputs to artifacts
# - cp -r my-project/build/outputs $CIRCLE_ARTIFACTS
# # copy the test results to the test results directory.
# - cp -r my-project/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
# - cp -r AndroidSamples/build/outputs $CIRCLE_ARTIFACTS
# - adb install AndroidSamples/build/outputs/apk/app-release.apk
pre:
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
- circle-android wait-for-boot