Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,41 @@ provisioner:
data_bags_path: test/data_bags

platforms:
# Ubuntu 18.04 is what’s used on the live OSM servers,
# according to https://hardware.openstreetmap.org/
- name: ubuntu-18.04
- name: ubuntu-18.04-ci
# Driver, transport, and provisioner using Docker and Chef Infra Client,
# necessary when used on virtual CI boxes that refuse to run Virtualbox or Vagrant.
# https://github.com/someara/kitchen-dokken
driver:
name: dokken
image: dokken/ubuntu-18.04
chef_version: 14
provision: true
# Docker and systemd need full capabilities granted in privileged mode
privileged: true
# Run systemd init to allow services like MySQL, etc. to function
pid_one_command: /bin/systemd
intermediate_instructions:
# Help APT find its required sources on first run
- RUN /usr/bin/apt-get update -y
provisioner:
name: dokken
product_name: chef
data_bags_path: test/data_bags
transport:
name: dokken

suites:
- name: accounts
run_list:
- recipe[accounts::default]
excludes: ["ubuntu-18.04-ci"]
- name: apache
run_list:
- recipe[apache::default]
excludes: ["ubuntu-18.04-ci"]
- name: apt
run_list:
- recipe[apt::default]
Expand All @@ -30,14 +56,17 @@ suites:
attributes:
bind:
clients: none
excludes: ["ubuntu-18.04-ci"]
- name: blogs
run_list:
- recipe[accounts::default]
- recipe[blogs::default]
excludes: ["ubuntu-18.04-ci"]
- name: forum
run_list:
- recipe[accounts::default]
- role[forum]
excludes: ["ubuntu-18.04-ci"]
- name: letsencrypt
run_list:
- recipe[accounts::default]
Expand All @@ -47,26 +76,34 @@ suites:
apt:
sources:
- openstreetmap
excludes: ["ubuntu-18.04-ci"]
- name: munin
run_list:
- recipe[munin::default]
excludes: ["ubuntu-18.04-ci"]
- name: munin-server
run_list:
- recipe[munin::server]
excludes: ["ubuntu-18.04-ci"]
- name: mysql
run_list:
- recipe[mysql::default]
excludes: ["ubuntu-18.04-ci"]
- name: networking
run_list:
- recipe[networking::default]
excludes: ["ubuntu-18.04-ci"]
- name: otrs
run_list:
- recipe[accounts::default]
- recipe[chef::default]
- role[otrs]
excludes: ["ubuntu-18.04-ci"]
- name: python
run_list:
- recipe[python::default]
excludes: ["ubuntu-18.04-ci"]
- name: tools
run_list:
- recipe[tools::default]
excludes: ["ubuntu-18.04-ci"]
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
sudo: false
language: ruby
cache: bundler
script:
- bundle exec cookstyle -f fuubar
services:
- docker
before_script:
# Put just enough Vagrant in the PATH to satisfy Test-Kitchen. No actual
# Vagrant or Virtualbox is run on Travis; this fake shim that echoes a
# recent Vagrant version is only here to allow tests to proceed below.
- sudo bash -c 'echo "echo Vagrant 2.0.0-fake" > /usr/bin/vagrant'
- sudo chmod +x /usr/bin/vagrant
jobs:
include:
- name: "Cookstyle"
script:
- bundle exec cookstyle -f fuubar
- name: "Kitchen Test Apt Cookbook"
script:
- bundle exec kitchen test apt-ubuntu-1804-ci
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"

gem "cookstyle"
gem "kitchen-dokken"
gem "kitchen-vagrant"
gem "serverspec"
gem "test-kitchen"
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ GEM
cookstyle (5.19.9)
rubocop (= 0.75.1)
diff-lcs (1.3)
docker-api (1.34.2)
excon (>= 0.47.0)
multi_json
ed25519 (1.2.4)
equatable (0.6.1)
erubi (1.9.0)
excon (0.72.0)
ffi (1.12.1)
gssapi (1.3.0)
ffi (>= 1.0.1)
gyoku (1.3.1)
builder (>= 2.1.2)
httpclient (2.8.3)
jaro_winkler (1.5.4)
kitchen-dokken (2.8.1)
docker-api (~> 1.33)
lockfile (~> 2.1)
test-kitchen (>= 1.15, < 3)
kitchen-vagrant (1.6.1)
test-kitchen (>= 1.4, < 3)
license-acceptance (1.0.13)
Expand All @@ -25,6 +33,7 @@ GEM
tty-box (~> 0.3)
tty-prompt (~> 0.18)
little-plugger (1.1.4)
lockfile (2.1.3)
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
Expand Down Expand Up @@ -149,6 +158,7 @@ PLATFORMS

DEPENDENCIES
cookstyle
kitchen-dokken
kitchen-vagrant
serverspec
test-kitchen
Expand Down