Fix testing
This commit is contained in:
parent
3ded29687e
commit
768cc62f66
19
.kitchen.yml
19
.kitchen.yml
@ -6,14 +6,21 @@ driver_config:
|
|||||||
use_sudo: false
|
use_sudo: false
|
||||||
privileged: true
|
privileged: true
|
||||||
provision_command: mkdir -p /run/sshd
|
provision_command: mkdir -p /run/sshd
|
||||||
run_command: /sbin/init
|
run_command: /lib/systemd/systemd
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: debian-9
|
- name: debian-9
|
||||||
- name: ubuntu-17.10
|
driver_config:
|
||||||
|
provision_command:
|
||||||
|
- apt-get install udev net-tools -y
|
||||||
|
- name: ubuntu-18.04
|
||||||
|
driver_config:
|
||||||
|
provision_command:
|
||||||
|
- apt-get install udev net-tools -y
|
||||||
- name: centos-7
|
- name: centos-7
|
||||||
driver_config:
|
driver_config:
|
||||||
image: saltstack/centos-7-minimal
|
provision_command:
|
||||||
|
- yum install udev net-tools -y
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: salt_solo
|
name: salt_solo
|
||||||
@ -35,9 +42,9 @@ provisioner:
|
|||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: inspec
|
name: inspec
|
||||||
sudo: false
|
sudo: true
|
||||||
# cli, documentation, html, progress, json, json-min, json-rspec, junit
|
reporter:
|
||||||
reporter: cli
|
- cli
|
||||||
inspec_tests:
|
inspec_tests:
|
||||||
- path: test/integration/default
|
- path: test/integration/default
|
||||||
|
|
||||||
|
10
.travis.yml
10
.travis.yml
@ -8,4 +8,12 @@ services:
|
|||||||
before_install:
|
before_install:
|
||||||
- bundle install
|
- bundle install
|
||||||
|
|
||||||
script: bundle exec kitchen verify
|
env:
|
||||||
|
matrix:
|
||||||
|
- INSTANCE: postfix-debian-9
|
||||||
|
- INSTANCE: postfix-ubuntu-1804
|
||||||
|
- INSTANCE: postfix-centos-7
|
||||||
|
|
||||||
|
script:
|
||||||
|
- bundle exec kitchen verify ${INSTANCE}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user