-
Notifications
You must be signed in to change notification settings - Fork 48
/
.drone.yml
45 lines (41 loc) · 1.2 KB
/
.drone.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
kind: pipeline
name: default
steps:
- name: test
image: devel/supla-android-ci
pull: never
commands:
- mv app/drone.google-services.json app/google-services.json
- mv app/src/internaltest/drone.google-services.json app/src/internaltest/google-services.json
- mv app/src/internalTestRelease/drone.google-services.json app/src/internalTestRelease/google-services.json
- ./gradlew build testDebugUnitTest
# Use in case of problems with unit tests
#- name: failureLog
# image: devel/supla-android-ci
# pull: never
# depends_on: [ connectedCheck ]
# commands:
# - find app/build/reports -type d
# - cat app/build/reports/tests/testDebugUnitTest/classes/org.supla.android.data.model.chart.DateRangeTest.html
# when:
# status: [ success, failure ]
# event:
# exclude:
# - pull_request
- name: notify
image: mike1pol/drone-rocket
depends_on: [ test ]
settings:
url: { from_secret: rocket_url }
user_id: { from_secret: rocket_user }
token: { from_secret: rocket_token }
channel: github
when:
status: [ success, failure ]
event:
exclude:
- pull_request
trigger:
status: [ success, failure ]
event:
exclude: [ pull_request ]