forked from cowthan/rebase-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
38 lines (34 loc) · 1.57 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
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/rebase-android/app/build/outputs/apk/
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
ANDROID_NDK: $HOME/android-ndk-r14-beta1
ANDROID_NDK_HOME: $ANDROID_NDK
PATH: $PATH:$ANDROID_NDK
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
cache_directories:
- ~/android-ndk-r14-beta1
pre:
- if [[ ! -e ~/android-ndk-r14-beta1 ]]; then wget http://dl.google.com/android/repository/android-ndk-r14-beta1-linux-x86_64.zip && unzip -d ~ android-ndk-r14-beta1-linux-x86_64.zip; fi
- ls $HOME
- 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.2
- echo y | android update sdk --no-ui --all --filter android-25
- echo y | android update sdk --no-ui --all --filter tools
- echo y | android update sdk --no-ui --all --filter extra-android-m2repository
- echo y | android update sdk --no-ui --all --filter extra-android-support
- echo y | android update sdk --no-ui --all --filter extra-google-google_play_services
- echo y | android update sdk --no-ui --all --filter extra-google-m2repository
- rm -rf "$ANDROID_HOME/licenses/"
- mkdir "$ANDROID_HOME/licenses"
- cp -r ./licenses/* "$ANDROID_HOME/licenses/"
test:
override:
- (./gradlew assembleDebug):
timeout: 360