1
0
mirror of https://github.com/dev-sec/ansible-nginx-hardening.git synced 2024-11-22 19:42:02 +01:00

improve gemfile, update readme for local tests

This commit is contained in:
Christoph Hartmann 2016-09-12 20:59:00 +02:00
parent 70126ad348
commit df32a38336
3 changed files with 11 additions and 5 deletions

@ -59,7 +59,7 @@ verifier:
- https://github.com/dev-sec/tests-ssh-hardening
suites:
- name: ssh-ansible_1.9
- name: nginx-ansible_1.9
provisioner:
ansible_version: 1.9.4
- name: ssh-ansible_latest
- name: nginx-ansible_latest

@ -2,6 +2,12 @@
source 'https://rubygems.org'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.2')
gem 'rack', '< 2.0'
gem 'ruby_dep', '< 1.4.0'
gem 'listen', '< 3.0.0'
end
group :test do
gem 'rake'
gem 'foodcritic', '~> 4.0'

@ -78,14 +78,14 @@ bundle exec kitchen converge default-ubuntu-1204
```
# fast test on one machine
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test default-ubuntu-1204
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test nginx-ansible-19-ubuntu-1404
# test on all machines
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test
# for development
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen create default-ubuntu-1204
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen converge default-ubuntu-1204
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen create nginx-ansible-19-ubuntu-1404
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen converge nginx-ansible-19-ubuntu-1404
```
For more information see [test-kitchen](http://kitchen.ci/docs/getting-started)