-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.drone.yml
88 lines (78 loc) · 1.93 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
---
workspace:
base: /platform
pipeline:
build:
image: node:16
commands:
- npm install
lint:
group: test
image: node:16
commands:
- npm run lint
test:
group: test
image: node:16
commands:
- npm test
validate-spec:
group: test
image: node:16
commands:
- npm run validate-yaml
- npm run validate-openapi-spec
start-smoke-test-database:
image: bitnami/mongodb
detach: true
environment:
- MONGODB_ROOT_PASSWORD=root
- MONGODB_USERNAME=realmq
- MONGODB_PASSWORD=realmq
- MONGODB_DATABASE=realmq
when:
branch: master
start-smoke-test-broker:
image: realmq/realmq-broker:master
detach: true
environment:
- HOST=0.0.0.0
- ADAPTER_HOST=start-smoke-test-instance
- CREDENTIALS=platform:platform
when:
branch: master
start-smoke-test-instance:
image: node:16
detach: true
environment:
- NODE_ENV=production
- DB_URL=mongodb://realmq:realmq@start-smoke-test-database:27017/realmq
- BROKER_HOST=start-smoke-test-broker
- BROKER_USERNAME=platform
- BROKER_PASSWORD=platform
commands:
- ./scripts/wait-for.js start-smoke-test-database:27017 start-smoke-test-broker:1883
- sleep 10
- npm start
when:
branch: master
run-smoke-test:
image: node:16
environment:
- SMOKE_TARGET_HOST=start-smoke-test-instance
commands:
- curl -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -o /usr/local/bin/jq
- chmod +x /usr/local/bin/jq
- ./scripts/wait-for.js start-smoke-test-instance:8080 60
- ./test/smoke/run.sh
when:
branch: master
release-image:
image: plugins/docker
repo: realmq/realmq-platform
secrets: [docker_username, docker_password]
auto_tag: true
---
kind: signature
hmac: a9dc223207ebec48b211f47d11708b3bbf987a3a4a37347f185db0c3e1b5d456
...