-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harmonizing the CI and test setup with chef-os-hardening
- Using vagrant for kitchen tests per default - Using dokken in the CI - Same travis configuration structure - Switch the tests to the latest available chef version Signed-off-by: Artem Sidorenko <artem@posteo.de>
- Loading branch information
1 parent
3e84ded
commit 9478a9a
Showing
6 changed files
with
171 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# this file is used for configuration of kitchen dokken | ||
# for integration tests in the CI | ||
--- | ||
driver: | ||
name: dokken | ||
privileged: true # because Docker and SystemD/Upstart | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: dokken | ||
|
||
verifier: | ||
name: inspec | ||
sudo: true | ||
|
||
platforms: | ||
- name: ubuntu-14-04 | ||
driver: | ||
image: ubuntu:14.04 | ||
- name: ubuntu-16-04 | ||
driver: | ||
image: ubuntu:16.04 | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
pid_one_command: /bin/systemd | ||
- name: centos-6 | ||
driver: | ||
image: centos:6 | ||
intermediate_instructions: | ||
- RUN yum install -y initscripts | ||
- name: centos-7 | ||
driver: | ||
image: centos:7 | ||
pid_one_command: /usr/lib/systemd/systemd | ||
- name: oracle-6 | ||
driver: | ||
image: oraclelinux:6 | ||
- name: oracle-7 | ||
driver: | ||
image: oraclelinux:7 | ||
pid_one_command: /usr/lib/systemd/systemd | ||
- name: debian-7 | ||
driver: | ||
image: debian:7 | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install -y procps | ||
- name: debian-8 | ||
driver: | ||
image: debian:8 | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install -y procps | ||
pid_one_command: /bin/systemd | ||
- name: fedora-24 | ||
driver: | ||
image: fedora:24 | ||
pid_one_command: /usr/lib/systemd/systemd | ||
intermediate_instructions: | ||
- RUN dnf install -y yum | ||
- name: fedora-25 | ||
driver: | ||
image: fedora:25 | ||
pid_one_command: /usr/lib/systemd/systemd | ||
intermediate_instructions: | ||
- RUN dnf install -y yum | ||
- name: opensuse-42 | ||
driver: | ||
image: opensuse:leap | ||
pid_one_command: /usr/lib/systemd/systemd | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[test] | ||
- recipe[ssh-hardening] | ||
verifier: | ||
inspec_tests: | ||
- https://github.com/dev-sec/tests-ssh-hardening |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,36 @@ | ||
--- | ||
sudo: required | ||
language: ruby | ||
cache: bundler | ||
bundler_args: "--without development" | ||
dist: trusty | ||
cache: bundler | ||
|
||
services: | ||
- docker | ||
|
||
rvm: 2.3.3 | ||
|
||
before_install: | ||
- gem --version | ||
- bundle version | ||
- gem update --system # see https://github.com/bundler/bundler/issues/5357 | ||
|
||
env: | ||
- INSTANCE=ubuntu-14-04 | ||
- INSTANCE=ubuntu-16-04 | ||
- INSTANCE=centos-6 | ||
- INSTANCE=centos-7 | ||
- INSTANCE=oracle-6 | ||
- INSTANCE=oracle-7 | ||
- INSTANCE=debian-7 | ||
- INSTANCE=debian-8 | ||
- INSTANCE=fedora-24 | ||
- INSTANCE=fedora-25 | ||
- INSTANCE=opensuse-42 | ||
|
||
script: | ||
- bundle exec rake kitchen KITCHEN_LOCAL_YAML=.kitchen.dokken.yml | ||
|
||
matrix: | ||
include: | ||
# verify lint and unit | ||
- rvm: 2.3.1 | ||
gemfile: Gemfile | ||
bundler_args: "--without integration development" | ||
# integration tests | ||
- rvm: 2.3.1 | ||
bundler_args: "--without development" | ||
script: bundle exec rake $SUITE | ||
env: SUITE=test:integration OS='centos' | ||
- rvm: 2.3.1 | ||
bundler_args: "--without development" | ||
script: bundle exec rake $SUITE | ||
env: SUITE=test:integration OS='oracle' | ||
- rvm: 2.3.1 | ||
bundler_args: "--without development" | ||
script: bundle exec rake $SUITE | ||
env: SUITE=test:integration OS='ubuntu' | ||
- rvm: 2.3.1 | ||
bundler_args: "--without development" | ||
script: bundle exec rake $SUITE | ||
env: SUITE=test:integration OS='debian' | ||
- rvm: 2.3.1 | ||
bundler_args: "--without development" | ||
script: bundle exec rake $SUITE | ||
env: SUITE=test:integration OS='fedora' | ||
- rvm: 2.3.1 | ||
bundler_args: "--without development" | ||
script: bundle exec rake $SUITE | ||
env: SUITE=test:integration OS='opensuse' | ||
- env: UNIT_AND_LINT=1 | ||
script: | ||
- bundle exec rake lint spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.