forked from madduck/reclass
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.kitchen.yml
41 lines (33 loc) · 868 Bytes
/
.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
---
driver:
name: docker
priviledged: false
use_sudo: false
volume:
- <%= ENV['PWD'] %>:/tmp/kitchen
provisioner:
name: shell
script: .kitchen-verify.sh
verifier:
name: inspec
<%- pyver = ENV['PYTHON_VERSION'] || '2.7' %>
platforms:
<% `find test/model -maxdepth 1 -mindepth 1 -type d |sort -u`.split().each do |model| %>
<% model=model.split('/')[2] %>
- name: <%= model %>
driver_config:
image: python:<%= pyver %>
platform: ubuntu
hostname: reclass
provision_command:
#FIXME, setup reclass env (prereq, configs, upload models)
#- apt-get install -y rsync
- echo "
export LC_ALL=C.UTF-8;\n
export LANG=C.UTF-8;\n
export PYVER=<%= pyver %>;\n
export MODEL=<%= model %>;\n
" > /kitchen.env
<% end %>
suites:
- name: model