forked from github/wulkanowy-mirror
25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
machine:
|
|
environment:
|
|
ANDROID_HOME: /usr/local/android-sdk-linux
|
|
ANDROID_NDK: $HOME/android-ndk-r11c
|
|
ANDROID_NDK_HOME: $ANDROID_NDK
|
|
PATH: $PATH:$ANDROID_NDK
|
|
|
|
dependencies:
|
|
pre:
|
|
- wget "https://downloads.gradle.org/distributions/gradle-2.3-bin.zip"; unzip gradle-2.3-bin.zip
|
|
override:
|
|
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-25.0.2,android-25,extra-google-m2repository,extra-google-google_play_services,extra-android-m2repository
|
|
# Constraint Layout / [Solver for ConstraintLayout 1.0.0-alpha8, ConstraintLayout for Android 1.0.0-alpha8]
|
|
- mkdir -p $ANDROID_HOME/licenses/
|
|
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
|
|
- echo "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_HOME/licenses/android-sdk-preview-licens
|
|
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
|
|
|
|
test:
|
|
override:
|
|
- ./gradlew test
|
|
- ./gradlew check
|
|
- ./gradlew assembleDebug
|
|
- cp app/build/outputs/apk/app-debug.apk $CIRCLE_ARTIFACTS
|