-
Notifications
You must be signed in to change notification settings - Fork 43
/
.drone.yml
98 lines (83 loc) · 2.14 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
kind: pipeline
name: default
services:
- name: db
image: mariadb:10.7.3
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: test
steps:
- name: supla-server-test
image: devel/supla-core
pull: never
depends_on: [db]
commands:
# - sleep 10
- test/supla-server-test.sh
environment:
DBHOST: db
- name: supla-console-client-test
image: devel/supla-core
pull: never
depends_on: [supla-server-test]
when:
status: [success, failure]
commands:
# - sleep 10
- test/supla-console-client-test.sh
environment:
DBHOST: db
- name: supla-scheduler-test
image: devel/supla-core
pull: never
commands:
- ./test/supla-scheduler-test.sh
- name: supla-dev-compilation-check
image: devel/supla-core
pull: never
commands:
- ./test/supla-dev-compilation-check.sh
- name: supla-server-compilation-check
image: devel/supla-core
pull: never
commands:
- ./test/supla-server-compilation-check.sh
- name: supla-scheduler-compilation-check
image: devel/supla-core
pull: never
commands:
- ./test/supla-scheduler-compilation-check.sh
- name: supla-console-client-compilation-check
image: devel/supla-core
pull: never
commands:
- ./test/supla-console-client-compilation-check.sh
- name: cpplint
image: devel/supla-core
pull: never
commands:
- ./tools/lint.sh
- name: joining
image: devel/supla-core
pull: never
depends_on: [supla-server-test, supla-scheduler-test, supla-console-client-test, supla-dev-compilation-check, supla-server-compilation-check, supla-scheduler-compilation-check, supla-console-client-compilation-check, cpplint]
commands:
- echo "test"
#- name: test
# image: mariadb
# commands:
# - ./supladevicetests --gtest_repeat=50 --gtest_shuffle
- name: rocket
image: mike1pol/drone-rocket
depends_on: [joining]
settings:
url: { from_secret: rocket_url }
user_id: { from_secret: rocket_user }
token: { from_secret: rocket_token }
channel: github
avatar_url: "https://miro.medium.com/max/256/0*AqO_2lNemh_Fl9Gm.png"
when:
status: [success, failure]
event:
exclude:
- pull_request