-
Notifications
You must be signed in to change notification settings - Fork 9
/
wercker.yml
33 lines (33 loc) · 1.06 KB
/
wercker.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
box: wercker/android
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: show base information
code: |
./gradlew -v
echo $ANDROID_HOME
echo $ANDROID_SDK_VERSION
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
echo $ANDROID_NDK_HOME
- android-sdk-update:
filter: platform-tools,build-tools-22.0.1,android-22,sysimg-22,extra-android-m2repository,extra-google-m2repository
- script:
name: build and install
code: |
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build install
- setup-android-emulator:
target: android-22
- script:
name: connectedCheck
code: |
./gradlew --project-cache-dir=$WERCKER_CACHE_DIR connectedAndroidTest
after-steps:
# Use the build results
- script:
name: inspect build result
code: |
ls -la GettingStarted/build/apk/
cp GettingStarted/build/apk/*.apk $WERCKER_REPORT_ARTIFACTS_DIR