-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwercker.yml
38 lines (38 loc) · 1.18 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
box: cattaka/[email protected]
build:
steps:
- script:
name: show base information
code: |
gradle -v
echo $ANDROID_HOME
echo $ANDROID_SDK_VERSION
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
- android-sdk-update:
filter: sysimg-21
- setup-android-emulator:
target: android-21
- script:
name: run gradle createDebugCoverageReport
code: |
gradle --project-cache-dir=$WERCKER_CACHE_DIR createDebugCoverageReport
- script:
name: run gradle assembleDebug
code: |
pwd
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR assembleDebug
after-steps:
# Use the build results
- script:
name: inspect build result
code: |
pwd
ls -la ./app/build/outputs/
cp -r ./app/build/outputs/* ${WERCKER_REPORT_ARTIFACTS_DIR}
deploy:
steps:
- script:
name: upload to www.cattaka.net
code: |
lftp -u ${DEPLOY_FTP_USER},${DEPLOY_FTP_PASS} -e "set ssl:verify-certificate no;mirror --delete -R ./app/build/outputs/ fastchecklist/;quit" ${DEPLOY_FTP_SERVER}