forked from Tom-Camp/va-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
72 lines (70 loc) · 1.69 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
workspace:
base: /app
path: src
pipeline:
test:
image: captbobalou/va-demo:latest
pull: true
commands:
- sleep 20
- timeout 300 bash -c 'until curl -m1 -s http://web > /dev/null; do sleep 0.5; done'
- drush --root=/app/src/docroot core:status
- /app/src/vendor/bin/behat -c /app/src/tests/bdd/behat.yml
gemini:
image: civicactions/docker-gemini:latest
pull: true
environment:
- NODE_NO_WARNINGS=1
commands:
- cd /app/src/tests/visual
- gemini test .
pa11y:
image: civicactions/docker-pa11y:latest
pull: true
commands:
- cd /home/node/app
- cp -R /app/src/tests/accessibility/* .
- /home/node/entrypoint.sh node pa11y.js
cap_add:
- SYS_ADMIN
zap:
image: owasp/zap2docker-stable
commands:
- mkdir -p /zap/wrk
- cd /zap/wrk
- cp -R /app/src/tests/security/* .
- zap-baseline.py -d -t http://web -c gen.conf
slack:
image: plugins/slack
pull: true
channel: vagov-dev
secrets: [ slack_webhook ]
when:
status: [ success, failure ]
services:
db:
image: mariadb:10.3
pull: true
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=dbuser
- MYSQL_PASSWORD=dbpass
- MYSQL_DATABASE=drupal
web:
image: captbobalou/va-demo:latest
pull: true
hub:
image: selenium/hub:3.9.1-actinium
pull: true
chrome:
image: selenium/node-chrome:3.9.1-actinium
pull: true
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444
firefox:
image: selenium/node-firefox:2.53.1
pull: true
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444