mirror of
https://github.com/dev-sec/ansible-nginx-hardening.git
synced 2024-11-23 04:12:02 +01:00
improve gemfile, update readme for local tests
This commit is contained in:
parent
70126ad348
commit
df32a38336
@ -59,7 +59,7 @@ verifier:
|
|||||||
- https://github.com/dev-sec/tests-ssh-hardening
|
- https://github.com/dev-sec/tests-ssh-hardening
|
||||||
|
|
||||||
suites:
|
suites:
|
||||||
- name: ssh-ansible_1.9
|
- name: nginx-ansible_1.9
|
||||||
provisioner:
|
provisioner:
|
||||||
ansible_version: 1.9.4
|
ansible_version: 1.9.4
|
||||||
- name: ssh-ansible_latest
|
- name: nginx-ansible_latest
|
||||||
|
6
Gemfile
6
Gemfile
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
source 'https://rubygems.org'
|
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
|
group :test do
|
||||||
gem 'rake'
|
gem 'rake'
|
||||||
gem 'foodcritic', '~> 4.0'
|
gem 'foodcritic', '~> 4.0'
|
||||||
|
@ -78,14 +78,14 @@ bundle exec kitchen converge default-ubuntu-1204
|
|||||||
|
|
||||||
```
|
```
|
||||||
# fast test on one machine
|
# 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
|
# test on all machines
|
||||||
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test
|
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen test
|
||||||
|
|
||||||
# for development
|
# for development
|
||||||
KITCHEN_YAML=".kitchen.vagrant.yml" bundle exec kitchen create 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 default-ubuntu-1204
|
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)
|
For more information see [test-kitchen](http://kitchen.ci/docs/getting-started)
|
||||||
|
Loading…
Reference in New Issue
Block a user