forked from chibatching/Kotpref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
58 lines (55 loc) · 1.61 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
48
49
50
51
52
53
54
55
56
57
58
box: chibatching/docker-android-sdk
build:
steps:
- script:
name: set android sdk location
code: |
echo "sdk.dir=${ANDROID_HOME}" > local.properties
- script:
name: set gradle properties
code: |
echo "org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -Xms512m" > gradle.properties
- script:
name: setup gradle local cache
code: |-
mkdir -p $WERCKER_CACHE_DIR/.gradle
ln -sf $WERCKER_CACHE_DIR/.gradle ~/.gradle
- script:
name: unit test
code: |
./gradlew jacocoTestReport --no-daemon
- script:
name: upload test result to codecov
code: |
bash <(curl -s https://codecov.io/bash)
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
publish:
steps:
- script:
name: setup gradle local cache
code: |-
mkdir -p $WERCKER_CACHE_DIR/.gradle
ln -sf $WERCKER_CACHE_DIR/.gradle ~/.gradle
- script:
name: bintray upload
code: |
./gradlew clean install bintrayUpload --no-daemon
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
uploadSnapshot:
steps:
- script:
name: setup gradle local cache
code: |-
mkdir -p $WERCKER_CACHE_DIR/.gradle
ln -sf $WERCKER_CACHE_DIR/.gradle ~/.gradle
- script:
name: snapshot upload
code: |
./gradlew clean uploadArchives --no-daemon
after-steps:
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL