This repository has been archived by the owner on Feb 11, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.drone.yml
77 lines (69 loc) · 1.43 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
kind: pipeline
name: debug-test
platform:
os: linux
arch: amd64
steps:
- name: Clone submodules
image: docker:git
commands:
- git submodule update --init --recursive
- git fetch --tags
when:
branch:
exclude:
- l10n_master
- name: Decrypt signing keys
image: msfjarvis/docker-android-sdk:ubuntu-standalone
commands:
- "./release/signing-setup.sh \"$SIGNING_KEY\""
environment:
SIGNING_KEY:
from_secret: enc_key
when:
event:
exclude:
- pull_request
- name: Run Spotless to validate codestyle
image: msfjarvis/docker-android-sdk:ubuntu-standalone
commands:
- ./gradlew spotlessCheck
when:
branch:
exclude:
- l10n_master
- name: Run checks
image: msfjarvis/docker-android-sdk:ubuntu-standalone
commands:
- ./gradlew check
when:
event:
- pull_request
- name: Build debug APK
image: msfjarvis/docker-android-sdk:ubuntu-standalone
commands:
- ./gradlew assembleDebug
when:
branch:
exclude:
- l10n_master
event:
exclude:
- pull_request
- name: Deploy to Telegram
image: msfjarvis/drone-telegram:latest
settings:
artifacts: ./app/build/outputs/apk/debug/app-debug.apk:Viscerion
bot_token:
from_secret: bot_token
channel_id: -1001278683441
major_minor: ci
sticker: CAADBAAD8R8AAmSKPgABCOk3mg-Zvf0C
when:
branch:
- master
event:
exclude:
- pull_request
...