forked from chef-cookbooks/chef_client_updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (91 loc) · 2.8 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
87
88
89
90
91
92
93
94
95
# TAS50: THIS COOKBOOK DELIBERATELY DOES NOT USE THE STANDARD TRAVIS.YML FILE
sudo: false
dist: trusty
cache: bundler
addons:
apt:
sources:
- chef-current-trusty
packages:
- chefdk
branches:
only:
- master
before_install:
- gem install bundler
- bundle --version
- gem update --system
- gem --version
matrix:
include:
- rvm: 2.4.4
before_script:
- eval "$(chef shell-init bash)"
install: echo "skip bundle install"
script:
- chef --version
- cookstyle --version
- foodcritic --version
- chef exec delivery local all
- rvm: 2.4.4
services: docker
sudo: required
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
env:
- OMNIBUS_CHEF_VERSION=13.6.0
- KITCHEN_YAML=kitchen.dokken.yml
script:
# this tests a downgrade from latest "13" to latest "12" via partial versions
- bundle exec kitchen test constrained-ubuntu-1604
- rvm: 2.4.4
services: docker
sudo: required
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
env:
- OMNIBUS_CHEF_VERSION=14.1.1
- KITCHEN_YAML=kitchen.dokken.yml
script:
- bundle exec kitchen test default-ubuntu-1604
- rvm: 2.4.4
services: docker
sudo: required
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
env:
- OMNIBUS_CHEF_VERSION=13.8.5
- KITCHEN_YAML=kitchen.dokken.yml
script:
- bundle exec kitchen test default-ubuntu-1604
- rvm: 2.4.4
services: docker
sudo: required
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
env:
- OMNIBUS_CHEF_VERSION=12.21.31
- KITCHEN_YAML=kitchen.dokken.yml
script:
- bundle exec kitchen test default-ubuntu-1604
- rvm: 2.4.4
services: docker
sudo: required
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
# 11.10.4 is the earliest we can test due to test-kitchen / chef-zero not supporting earlier
# (cookbook likely supports earlier versions)
env:
- OMNIBUS_CHEF_VERSION=11.10.4
- KITCHEN_YAML=kitchen.dokken.yml
script:
- bundle exec kitchen test default-ubuntu-1604
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.ancient
before_install:
# ancient ruby gets ancient bundler + ancient gem as well
- bundle --version
- gem update --system 2.6.11
- gem --version
script:
- bundle exec rspec