-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwercker.yml
33 lines (33 loc) · 1.07 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:
steps:
- script:
name: show base information
code: |
gradle -v
echo $ANDROID_HOME
echo $ANDROID_SDK_VERSION
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
#- script:
# name: run gradle createDebugCoverageReport
# code: |
# gradle --project-cache-dir=$WERCKER_CACHE_DIR createDebugCoverageReport
- script:
name: run gradle build
code: |
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
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 deploygate
code: |
curl -F "file=@app/build/outputs/apk/$APK_FILE_NAME" -F "token=632fdf1885ed773380d2f4b54f6691d81955ef27" -F "distribution_key=${DEPLOYGATE_DISTRIBUTION_KEY}" https://deploygate.com/api/users/exKAZUu/apps