forked from chef-cookbooks/chef_client_updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (56 loc) · 1.62 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
# 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.3
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.3
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.4
- 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.3
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
script:
- bundle exec rspec