-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand testing, support Suse, Fix amazon, Update package versions (#164)
* Convert to Chef 12.1+ cookbook Signed-off-by: Tim Smith <tsmith@chef.io> * Expand kitchen testing Signed-off-by: Tim Smith <tsmith@chef.io> * Add suse support and Remove source testing on Ubuntu 12.04 Signed-off-by: Tim Smith <tsmith@chef.io> * Require Ark 2.0.2 for suse Prior versions are not compatible with suse Signed-off-by: Tim Smith <tsmith@chef.io> * Update travis / dokken config Signed-off-by: Tim Smith <tsmith@chef.io> * Fix the naming of leap in the travis config Signed-off-by: Tim Smith <tsmith@chef.io> * Fix suse package names for leap 13.X is EOL so it doesn't matter anymore. Signed-off-by: Tim Smith <tsmith@chef.io> * Add specs to ensure package installs and remove source in travis Lets start with just package installs for now. Source installs are harder in docker images Signed-off-by: Tim Smith <tsmith@chef.io> * Require a more recent compat_resource and fix license string Signed-off-by: Tim Smith <tsmith@chef.io> * Fix debian kitchen runs Signed-off-by: Tim Smith <tsmith@chef.io> * Make sure Amazon Linux works on Chef 13 Signed-off-by: Tim Smith <tsmith@chef.io> * Make sure we have https support in apt Fixes failures on Debian Signed-off-by: Tim Smith <tsmith@chef.io> * Set the default repos to Node 6 and iojs 3 The repo URLs Signed-off-by: Tim Smith <tsmith@chef.io>
- Loading branch information
Showing
18 changed files
with
306 additions
and
65 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,126 @@ | ||
driver: | ||
name: dokken | ||
privileged: true # because Docker and SystemD/Upstart | ||
chef_version: current | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: dokken | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: debian-7 | ||
driver: | ||
image: debian:7 | ||
pid_one_command: /sbin/init | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y | ||
|
||
- name: debian-8 | ||
driver: | ||
image: debian:8 | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y | ||
|
||
- name: centos-6 | ||
driver: | ||
image: centos:6 | ||
platform: rhel | ||
pid_one_command: /sbin/init | ||
intermediate_instructions: | ||
- RUN yum -y install lsof which initscripts net-tools wget net-tools | ||
|
||
- name: centos-7 | ||
driver: | ||
image: centos:7 | ||
platform: rhel | ||
pid_one_command: /usr/lib/systemd/systemd | ||
intermediate_instructions: | ||
- RUN yum -y install lsof which systemd-sysv initscripts wget net-tools | ||
|
||
- name: fedora-latest | ||
driver: | ||
image: fedora:latest | ||
pid_one_command: /usr/lib/systemd/systemd | ||
intermediate_instructions: | ||
- RUN dnf -y install which systemd-sysv initscripts wget net-tools | ||
|
||
- name: ubuntu-14.04 | ||
driver: | ||
image: ubuntu-upstart:14.04 | ||
pid_one_command: /sbin/init | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y | ||
|
||
- name: ubuntu-16.04 | ||
driver: | ||
image: ubuntu:16.04 | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y | ||
|
||
- name: opensuse-leap | ||
driver: | ||
image: opensuse:leap | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN zypper --non-interactive install aaa_base perl-Getopt-Long-Descriptive which net-tools | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[nodejs] | ||
- name: package | ||
run_list: | ||
- recipe[test::package] | ||
- name: binary | ||
run_list: | ||
- recipe[test::binary] | ||
- name: source | ||
run_list: | ||
- recipe[test::source] | ||
excludes: | ||
- centos-6 | ||
- name: source-iojs | ||
run_list: | ||
- recipe[source_iojs] | ||
excludes: | ||
- centos-6 | ||
- name: npm | ||
run_list: | ||
- recipe[test::npm] | ||
- name: npm_embedded | ||
run_list: | ||
- recipe[test::npm] | ||
attributes: | ||
nodejs: | ||
npm: | ||
install_method: embedded | ||
- name: npm_source | ||
run_list: | ||
- recipe[test::npm] | ||
attributes: | ||
nodejs: | ||
npm: | ||
install_method: source | ||
excludes: | ||
- centos-6 | ||
- name: npm_packages | ||
run_list: recipe[nodejs] | ||
attributes: | ||
nodejs: | ||
npm_packages: | ||
- name: express | ||
- name: socket.io | ||
version: 1.0.4 | ||
- name: express | ||
action: uninstall |
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,26 +1,43 @@ | ||
# Use Travis's cointainer based infrastructure | ||
sudo: false | ||
sudo: required | ||
dist: trusty | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- chef-current-precise | ||
- chef-current-trusty | ||
packages: | ||
- chefdk | ||
|
||
# Don't `bundle install` | ||
# Don't `bundle install` which takes about 1.5 mins | ||
install: echo "skip bundle install" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
# Ensure we make ChefDK's Ruby the default | ||
services: docker | ||
|
||
env: | ||
matrix: | ||
- INSTANCE=package-centos-6 | ||
- INSTANCE=package-centos-7 | ||
- INSTANCE=package-debian-7 | ||
- INSTANCE=package-debian-8 | ||
- INSTANCE=package-opensuse-leap | ||
- INSTANCE=package-ubuntu-1404 | ||
- INSTANCE=package-ubuntu-1604 | ||
|
||
before_script: | ||
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER ) | ||
- eval "$(/opt/chefdk/bin/chef shell-init bash)" | ||
|
||
script: | ||
- /opt/chefdk/embedded/bin/chef --version | ||
- /opt/chefdk/embedded/bin/cookstyle --version | ||
- /opt/chefdk/embedded/bin/foodcritic --version | ||
- /opt/chefdk/bin/chef exec delivery local all | ||
|
||
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE} | ||
|
||
matrix: | ||
include: | ||
- script: | ||
- /opt/chefdk/bin/chef exec delivery local all | ||
env: UNIT_AND_LINT=1 |
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
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
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,20 +1,19 @@ | ||
name 'nodejs' | ||
maintainer 'redguide' | ||
maintainer_email 'guilhem@lettron.fr' | ||
license 'Apache 2.0' | ||
license 'Apache-2.0' | ||
description 'Installs/Configures node.js & io.js' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
source_url 'https://github.com/redguide/nodejs' if respond_to?(:source_url) | ||
issues_url 'https://github.com/redguide/nodejs/issues' if respond_to?(:issues_url) | ||
chef_version '>= 11.0' if respond_to?(:chef_version) | ||
source_url 'https://github.com/redguide/nodejs' | ||
issues_url 'https://github.com/redguide/nodejs/issues' | ||
chef_version '>= 12.1' if respond_to?(:chef_version) | ||
version '3.0.1' | ||
|
||
depends 'yum-epel' | ||
depends 'build-essential' | ||
depends 'ark' | ||
depends 'apt', '>= 2.9.1' | ||
depends 'homebrew' | ||
depends 'ark', '>= 2.0.2' | ||
depends 'compat_resource', '>= 12.16' | ||
|
||
%w(debian ubuntu centos redhat scientific oracle amazon smartos mac_os_x).each do |os| | ||
%w(debian ubuntu centos redhat scientific oracle amazon smartos mac_os_x opensuse opensuseleap suse).each do |os| | ||
supports os | ||
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
Oops, something went wrong.