-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
86 lines (77 loc) · 2.53 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
dist: xenial
addons:
apt:
sources:
- chef-current-xenial
packages:
- chef-workstation
# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"
branches:
only:
- master
services:
- docker
env:
global:
- CHEF_VERSION=15.8.23
- KITCHEN_YAML=kitchen.dokken.yml
- CHEF_LICENSE="accept-no-persist"
before_install:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- CHEF_LICENSE="accept-no-persist" sudo chef gem install webmock
- eval "$(chef shell-init bash)"
- chef --version
- kitchen list
matrix:
include:
# Run the style, unit and chefspec tests
- rvm: 2.6.5
script: rake
# Run integration tests with test-kitchen
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='default-centos-7'
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='default-ubuntu-1804'
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='missing-profile-no-fail-ubuntu-1804'
- rvm: 2.6.5
script: rake $SUITE && exit 1 || echo "OK"
env: SUITE=test:integration OS='missing-profile-fail-ubuntu-1804'
# Next 5 suites are disabled due to an issue with the gem() inspec resource
# see https://github.com/chef-cookbooks/audit/issues/406
#
# - rvm: 2.6.5
# script: rake $SUITE
# env: SUITE=test:integration OS='chef15-compatible-inspec-ubuntu-1804'
# Next 4 suites test running inspec 3 or 4 on audit cookbook. This is only permitted on chef 14 or older.
# - rvm: 2.6.5
# script: rake $SUITE
# env: SUITE=test:integration OS='gem-install-core-version4-centos-7' CHEF_VERSION=14
# - rvm: 2.6.5
# script: rake $SUITE
# env: SUITE=test:integration OS='gem-install-core-version3-centos-7' CHEF_VERSION=14
# - rvm: 2.6.5
# script: rake $SUITE
# env: SUITE=test:integration OS='gem-install-core-version4-ubuntu-1804' CHEF_VERSION=14
# - rvm: 2.6.5
# script: rake $SUITE
# env: SUITE=test:integration OS='gem-install-core-version3-ubuntu-1804' CHEF_VERSION=14
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='inspec-attributes-ubuntu-1804'
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='chef-node-enabled-ubuntu-1804'
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='chef-node-disabled-ubuntu-1804'
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='hash-centos-7'
- rvm: 2.6.5
script: rake $SUITE
env: SUITE=test:integration OS='hash-ubuntu-1804'