forked from YUKAI/konashi-android-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
47 lines (46 loc) · 1.38 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
box: e10dokup/android:build-tools-23.0.1_target-api-23
build:
steps:
- script:
name: show base information
code: |
gradle -v
echo $ANDROID_HOME
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
- script:
name: run gradle test
code: |
gradle --full-stacktrace -info --project-cache-dir=$WERCKER_CACHE_DIR :konashi-android-sdk:test
- script:
name: start android emulator
code: |
start-emulator
- script:
name: run gradle connectedAndroidTest
code: |
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR :konashi-android-sdk:connectedAndroidTest
after-steps:
- script:
name: inspect build result
code: |
pwd
ls -la ./konashi-android-sdk/build
ls -la ./konashi-android-sdk/build/outputs/
cp -r ./konashi-android-sdk/build/outputs/* ${WERCKER_REPORT_ARTIFACTS_DIR}
REPORT_INDEX=./konashi-android-sdk/build/reports/androidTests/connected/index.html
python .wercker/report.py $REPORT_INDEX
deploy:
steps:
- script:
name: show base information
code: |
gradle -v
- script:
name: build with gradle
code: |
gradle build
- script:
name: upload to bintray
code: |
gradle bintrayUpload