Skip to content

Commit

Permalink
feat(kitchen+travis): conduct tests on a wider range of platforms
Browse files Browse the repository at this point in the history
Based on discussions in #saltstack-formulas leading to:

* Debian:
  - debian-9
  - debian-8
  - ubuntu-18
  - ubuntu-16
* RedHat:
  - centos-7
  - centos-6
  - fedora
* Suse:
  - opensuse
  • Loading branch information
myii committed Feb 22, 2019
1 parent fc664e7 commit 1348078
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ services:
before_install:
- bundle install

# Make sure the instances listed below match up with
# the `platforms` defined in `kitchen.yml`
env:
matrix:
- INSTANCE: default-debian-9
- INSTANCE: default-debian-8
- INSTANCE: default-ubuntu-1804
- INSTANCE: default-ubuntu-1604
- INSTANCE: default-centos-7
# - INSTANCE: default-centos-6
- INSTANCE: default-fedora
# - INSTANCE: default-opensuse-leap

script:
- bundle exec kitchen verify ${INSTANCE}
Expand Down
30 changes: 28 additions & 2 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,48 @@ driver_config:
privileged: true
provision_command: mkdir -p /run/sshd

# Make sure the platforms listed below match up with
# the `env.matrix` instances defined in `.travis.yml`
platforms:
- name: debian-9
driver_config:
# This run_command is required to test systemd services in docker
run_command: /lib/systemd/systemd
provision_command:
- apt-get install udev -y
- apt install udev -y
- name: debian-8
driver_config:
run_command: /lib/systemd/systemd
provision_command:
- apt install udev -y
- name: ubuntu-18.04
driver_config:
run_command: /lib/systemd/systemd
provision_command:
- apt-get install udev -y
- apt install udev -y
- name: ubuntu-16.04
driver_config:
run_command: /lib/systemd/systemd
provision_command:
- apt install udev -y
- name: centos-7
driver_config:
image: centos:7
run_command: /usr/lib/systemd/systemd
# - name: centos-6
# driver_config:
# image: centos:6
# run_command: /usr/lib/systemd/systemd
- name: fedora
driver_config:
image: fedora
run_command: /usr/lib/systemd/systemd
provision_command:
- yum install udev -y
# - name: opensuse-leap
# driver_config:
# image: opensuse/leap
# run_command: /usr/lib/systemd/systemd

provisioner:
name: salt_solo
Expand Down

0 comments on commit 1348078

Please sign in to comment.