/
.narval.yml
68 lines (68 loc) · 1.61 KB
/
.narval.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
docker-images:
- name: headless-chrome-image
from: javierbrea/node-headless-chrome:1.0.0
add:
- package.json
- package-lock.json
install: test/commands/install.sh
- name: node-image
from: node:8.11.1
expose:
- 3000
- 3100
add:
- package.json
- package-lock.json
install: test/commands/install.sh
docker-containers:
- name: application-container
build: node-image
bind:
- dist
- test
- name: mocks-container
build: node-image
bind:
- dist
- test
- mocks
- name: test-container
build: headless-chrome-image
bind:
- test
standard:
directories:
- "avoid-standard/**/*.js"
suites:
acceptance:
- name: app
describe: Application acceptance tests
before:
docker:
down-volumes: true
services:
- name: mocks
abort-on-error: true
docker:
container: mocks-container
command: test/commands/start-mocks.sh
local:
command: test/commands/start-mocks.sh
- name: application
abort-on-error: true
docker:
container: application-container
command: test/commands/start-app.sh
wait-on: tcp:mocks-container:3100
local:
command: test/commands/start-app.sh
wait-on: tcp:localhost:3100
test:
specs: test/specs
docker:
container: test-container
wait-on: tcp:application-container:3000
local:
wait-on: tcp:localhost:3000
coverage:
enabled: false