Skip to content

Commit ceb147c

Browse files
Merge pull request #196 from artem-forks/tests
Update of CI and test environment
2 parents 064f3e1 + 180f969 commit ceb147c

File tree

4 files changed

+58
-47
lines changed

4 files changed

+58
-47
lines changed

.kitchen.dokken.yml

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,21 @@ verifier:
1919
sudo: true
2020

2121
platforms:
22-
- name: ubuntu-14-04
22+
- name: amazonlinux-1
2323
driver:
24-
image: ubuntu:14.04
25-
- name: ubuntu-16-04
24+
image: dokken/amazonlinux
25+
pid_one_command: /sbin/init
26+
- name: amazonlinux-2
2627
driver:
27-
image: ubuntu:16.04
28-
intermediate_instructions:
29-
- RUN /usr/bin/apt-get update
30-
pid_one_command: /bin/systemd
28+
image: dokken/amazonlinux-2
29+
pid_one_command: /usr/lib/systemd/systemd
3130
- name: centos-6
3231
driver:
33-
image: centos:6
34-
intermediate_instructions:
35-
- RUN yum install -y initscripts
32+
image: dokken/centos-6
33+
pid_one_command: /sbin/init
3634
- name: centos-7
3735
driver:
38-
image: centos:7
36+
image: dokken/centos-7
3937
pid_one_command: /usr/lib/systemd/systemd
4038
- name: oracle-6
4139
driver:
@@ -44,47 +42,52 @@ platforms:
4442
driver:
4543
image: oraclelinux:7
4644
pid_one_command: /usr/lib/systemd/systemd
47-
- name: debian-7
45+
- name: debian-8
4846
driver:
49-
image: debian:7
47+
image: dokken/debian-8
5048
intermediate_instructions:
5149
- RUN /usr/bin/apt-get update
52-
- RUN /usr/bin/apt-get install -y procps
53-
- name: debian-8
50+
pid_one_command: /bin/systemd
51+
- name: debian-9
5452
driver:
55-
image: debian:8
53+
image: dokken/debian-9
5654
intermediate_instructions:
5755
- RUN /usr/bin/apt-get update
58-
- RUN /usr/bin/apt-get install -y procps
5956
pid_one_command: /bin/systemd
60-
- name: fedora-24
57+
- name: fedora-27
6158
driver:
62-
image: fedora:24
59+
image: dokken/fedora-27
6360
pid_one_command: /usr/lib/systemd/systemd
6461
intermediate_instructions:
6562
- RUN dnf install -y yum
66-
- name: fedora-25
63+
- name: fedora-28
6764
driver:
68-
image: fedora:25
65+
image: dokken/fedora-28
6966
pid_one_command: /usr/lib/systemd/systemd
7067
intermediate_instructions:
7168
- RUN dnf install -y yum
7269
- name: opensuse-42
7370
driver:
74-
image: opensuse:leap
75-
pid_one_command: /usr/lib/systemd/systemd
76-
- name: amazonlinux-1
71+
image: dokken/opensuse-leap
72+
pid_one_command: /bin/systemd
73+
- name: ubuntu-14-04
7774
driver:
78-
image: amazonlinux:1
79-
intermediate_instructions:
80-
- RUN yum -y install upstart procps util-linux
75+
image: dokken/ubuntu-14.04
8176
pid_one_command: /sbin/init
82-
- name: amazonlinux-2
77+
intermediate_instructions:
78+
- RUN /usr/bin/apt-get update
79+
- name: ubuntu-16-04
8380
driver:
84-
image: amazonlinux:2
81+
image: dokken/ubuntu-16.04
82+
pid_one_command: /bin/systemd
8583
intermediate_instructions:
86-
- RUN yum -y install systemd
87-
pid_one_command: /usr/lib/systemd/systemd
84+
- RUN /usr/bin/apt-get update
85+
- name: ubuntu-18-04
86+
driver:
87+
image: dokken/ubuntu-18.04
88+
pid_one_command: /bin/systemd
89+
intermediate_instructions:
90+
- RUN /usr/bin/apt-get update
8891

8992
suites:
9093
- name: default

.kitchen.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@ driver:
55
platforms:
66
- name: ubuntu-14.04
77
- name: ubuntu-16.04
8-
- name: centos-6.8
9-
- name: centos-7.3
10-
- name: oracle-6.8
11-
- name: oracle-7.3
12-
- name: debian-7.11
13-
- name: debian-8.6
14-
- name: fedora-24
15-
- name: fedora-25
16-
- name: opensuse-leap-42.1
8+
- name: ubuntu-18-04
9+
- name: centos-6
10+
- name: centos-7
11+
- name: oracle-6
12+
- name: oracle-7
13+
- name: debian-8
14+
- name: debian-9
15+
- name: fedora-26
16+
- name: fedora-27
17+
- name: opensuse-leap-42
18+
- name: amazonlinux-1
19+
driver_config:
20+
box: realreadme/amazon2016.09
21+
- name: amazonlinux-2
22+
driver_config:
23+
box: stakahashi/amazonlinux2
1724

1825
provisioner:
1926
name: chef_solo

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cache: bundler
88
services:
99
- docker
1010

11-
rvm: 2.4.1
11+
rvm: 2.4.4
1212

1313
before_install:
1414
- gem update --system # see https://github.com/bundler/bundler/issues/5357
@@ -17,15 +17,16 @@ env:
1717
- INSTANCE=ubuntu-14-04
1818
- INSTANCE=ubuntu-16-04
1919
- INSTANCE=ubuntu-16-04 CHEF_VERSION=12.5.1
20+
- INSTANCE=ubuntu-18-04
2021
- INSTANCE=centos-6
2122
- INSTANCE=centos-7
2223
- INSTANCE=centos-7 CHEF_VERSION=12.5.1
2324
- INSTANCE=oracle-6
2425
- INSTANCE=oracle-7
25-
- INSTANCE=debian-7
2626
- INSTANCE=debian-8
27-
- INSTANCE=fedora-24
28-
- INSTANCE=fedora-25
27+
- INSTANCE=debian-9
28+
- INSTANCE=fedora-27
29+
- INSTANCE=fedora-28
2930
- INSTANCE=opensuse-42
3031
- INSTANCE=opensuse-42 CHEF_VERSION=12.5.1
3132
- INSTANCE=amazonlinux-1

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'chef', '~> 12.5' # chefspec builds get stucked with 13.1
88
group :test do
99
gem 'chefspec', '~> 7.1.0'
1010
gem 'coveralls', require: false
11-
gem 'foodcritic', '~> 11.1'
11+
gem 'foodcritic', '~> 13.0'
1212
gem 'rake'
1313
gem 'rubocop', '~> 0.49.0'
1414
gem 'simplecov', '~> 0.10'
@@ -23,9 +23,9 @@ end
2323

2424
group :integration do
2525
gem 'kitchen-dokken'
26-
gem 'kitchen-inspec'
26+
gem 'kitchen-inspec', '>= 0.23.1'
2727
gem 'kitchen-vagrant'
28-
gem 'test-kitchen', '~> 1.0'
28+
gem 'test-kitchen', '~> 1.20'
2929
end
3030

3131
group :tools do

0 commit comments

Comments
 (0)