forked from jeduardo/nomad-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
73 lines (68 loc) · 1.67 KB
/
.kitchen.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
---
driver:
name: docker
hostname: nomad-formula.ci.local
use_sudo: false
privileged: true
provisioner:
name: salt_solo
# No need for chef as we're not using busser
require_chef: false
formula: nomad
dependencies:
- name: golang
path: test/dependencies/golang-formula
pillars-from-files:
nomad.sls: pillar.example
pillars:
top.sls:
base:
'*':
- nomad
state_top:
base:
'*':
- nomad
platforms:
- name: debian-8
driver_config:
# This particular driver config is required to make sure that
# systemd is running inside the container.
run_command: /sbin/init
suites:
- name: nomad-install
# This one should be tested locally as it times out on Travis CI
# - name: nomad-install_build
# provisioner:
# state_top:
# base:
# '*':
# - golang
# - nomad
# pillars:
# top.sls:
# base:
# '*':
# - golang
# - nomad
# - nomad-build
# nomad-build.sls:
# nomad:
# build: true
# golang.sls:
# golang:
# lookup:
# version: 1.7.5
- name: nomad-config
- name: nomad-uninstall
provisioner:
state_top:
base:
'*':
- nomad
- nomad.uninstall
verifier:
name: shell
remote_exec: false
# Command changed to allow running the same tests with different parameters
command: testinfra -vvv --connection=docker --hosts=root@$KITCHEN_CONTAINER_ID --junit-xml junit-$KITCHEN_INSTANCE.xml test/integration/$(echo $KITCHEN_SUITE | sed 's/_.*//')