Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4d9496
commit f3b6d9e
Showing
14 changed files
with
84 additions
and
86 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
driver: | ||
name: dokken | ||
privileged: true # because Docker and SystemD/Upstart | ||
chef_version: current | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: dokken | ||
deprecations_as_errors: true | ||
|
||
platforms: | ||
- name: ubuntu-14.04 | ||
driver: | ||
image: dokken/ubuntu-14.04 | ||
pid_one_command: /sbin/init | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
|
||
- name: ubuntu-16.04 | ||
driver: | ||
image: dokken/ubuntu-16.04 | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update |
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,21 +1,30 @@ | ||
--- | ||
driver_plugin: vagrant | ||
driver_config: | ||
require_chef_omnibus: 12.7.2 | ||
require_chef_omnibus: 12 | ||
|
||
provisioner: | ||
name: chef_solo | ||
name: chef_zero | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: ubuntu-12.04 | ||
- name: ubuntu-14.04 | ||
- name: ubuntu-16.04 | ||
|
||
suites: | ||
- name: default | ||
- name: package | ||
run_list: | ||
- recipe[exabgp::default] | ||
- recipe[test::package] | ||
verifier: | ||
inspec_tests: | ||
- test/smoke/package | ||
attributes: | ||
- name: source | ||
run_list: | ||
- recipe[exabgp::source] | ||
- recipe[test::source] | ||
verifier: | ||
inspec_tests: | ||
- test/smoke/source | ||
attributes: |
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,39 +1,37 @@ | ||
sudo: required | ||
services: docker | ||
|
||
dist: trusty | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- chef-stable-precise | ||
- chef-stable-trusty | ||
packages: | ||
- chefdk | ||
|
||
env: | ||
global: | ||
- KITCHEN_LOCAL_YAML=.kitchen.dokken.yml | ||
matrix: | ||
- INSTANCE=default-ubuntu-1404 | ||
# - INSTANCE=default-ubuntu-1204 | ||
# - INSTANCE=source-ubuntu-1404 | ||
# - INSTANCE=source-ubuntu-1204 | ||
- KITCHEN_REGEXP=package-ubuntu-1404 | ||
- KITCHEN_REGEXP=source-ubuntu-1404 | ||
- KITCHEN_REGEXP=package-ubuntu-1604 | ||
- KITCHEN_REGEXP=source-ubuntu-1604 | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
# Don't `bundle install` because we're using ChefDK | ||
install: echo "skip bundle install" | ||
|
||
before_script: | ||
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142230889 | ||
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER ) | ||
- eval "$(/opt/chefdk/bin/chef shell-init bash)" | ||
- /opt/chefdk/embedded/bin/chef gem install kitchen-docker | ||
- chef gem install kitchen-dokken | ||
- chef gem install stove | ||
|
||
script: | ||
- /opt/chefdk/embedded/bin/chef --version | ||
- /opt/chefdk/embedded/bin/rubocop --version | ||
- /opt/chefdk/embedded/bin/rubocop | ||
- /opt/chefdk/embedded/bin/foodcritic --version | ||
- /opt/chefdk/embedded/bin/foodcritic . --exclude spec | ||
- /opt/chefdk/embedded/bin/rspec | ||
# - KITCHEN_LOCAL_YAML=.kitchen.docker.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE} | ||
script: chef exec rake | ||
|
||
notifications: | ||
email: false | ||
slack: | ||
secure: PTV/w6y8Rl7X0DYAt1p0Ez0FzT8y45HK785P0JYFpoOpjKM54682fDULuFL8LZGzXsyGt8A2btj+lVOo/HMWpFD7ho+K0+5tXolJ4f7GobNz+eKKrGRoOpGgfgKjDqzF44MEqa/W5kFBVLH7t6wW4OpwcaYAlGT4bgw3WONuAkI= | ||
secure: "cNz3S0Iw6IWQOzP4IIwSbqMjhPYNOwb6w/9/G1G6YcRTUDEtBY/BwJMdOyMsI568GU+D94oQa7OXswW/XQlb7pWMl4sPQt1VJt7WARsJ0F+Z8ScJtsyn/Tp2gbily2/5VH6paOjw86anrrjhH9cTvBMwROlzLpdYvuszdKpb4dU=" |
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ixtures/cookbooks/exabgp_test/metadata.rb → test/cookbooks/test/metadata.rb
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,6 +1,6 @@ | ||
name 'exabgp_test' | ||
name 'test' | ||
version '0.0.1' | ||
|
||
depends 'exabgp' | ||
depends 'poise-python' | ||
depends 'runit' | ||
depends 'poise-service-runit' |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exabgp 'default' do | ||
install_type :source | ||
end |
File renamed without changes.
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,7 @@ | ||
describe processes('/usr/bin/python2.7 /usr/local/bin/exabgp') do | ||
it { should exist } | ||
end | ||
|
||
describe file('/etc/exabgp/exabgp.conf') do | ||
it { should exist } | ||
end |
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,3 @@ | ||
describe processes('exabgp') do | ||
it { should exist } | ||
end |