-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
116 lines (108 loc) · 4.02 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
rvm:
- 2.0.0
- 2.1
- 2.2
sudo: required
services: docker
env:
matrix:
# CHEF_VERSION is only for unit tests, no for test-kitchen:
- TESTS="style unit" CHEF_VERSION="~> 11.0"
- TESTS="style unit" CHEF_VERSION="~> 12.0"
# Split up the test-kitchen run to avoid exceeding 50 minutes:
- TESTS="integration[mysql-centos-6,verify]"
- TESTS="integration[mysql-debian-7,verify]"
- TESTS="integration[mysql-debian-8,verify]"
- TESTS="integration[mysql-scientific-66,verify]"
- TESTS="integration[postgresql-debian-7,verify]"
- TESTS="integration[postgresql-debian-8,verify]"
- TESTS="integration[postgresql-ubuntu-1204,verify]"
- TESTS="integration[postgresql-ubuntu-1404,verify]"
- TESTS="integration[sqlite-centos-6,verify]"
- TESTS="integration[sqlite-debian-7,verify]"
- TESTS="integration[sqlite-debian-8,verify]"
- TESTS="integration[sqlite-ubuntu-1204,verify]"
- TESTS="integration[sqlite-ubuntu-1404,verify]"
- TESTS="integration[sqlite-ubuntu-1504,verify]"
- TESTS="integration[sqlite-scientific-66,verify]"
- TESTS="integration[nginx-debian-7,verify]"
- TESTS="integration[nginx-debian-8,verify]"
matrix:
exclude:
# Chef 11 cannot resolve dependencies in Ruby 2.2 (mixlib-shellout):
- rvm: 2.2
env: TESTS="style unit" CHEF_VERSION="~> 11.0"
# Disable integration tests in old Ruby versions:
- rvm: 2.0.0
env: TESTS="integration[mysql-centos-6,verify]"
- rvm: 2.1
env: TESTS="integration[mysql-centos-6,verify]"
- rvm: 2.0.0
env: TESTS="integration[mysql-debian-7,verify]"
- rvm: 2.1
env: TESTS="integration[mysql-debian-7,verify]"
- rvm: 2.0.0
env: TESTS="integration[mysql-debian-8,verify]"
- rvm: 2.1
env: TESTS="integration[mysql-debian-8,verify]"
- rvm: 2.0.0
env: TESTS="integration[mysql-scientific-66,verify]"
- rvm: 2.1
env: TESTS="integration[mysql-scientific-66,verify]"
- rvm: 2.0.0
env: TESTS="integration[postgresql-debian-7,verify]"
- rvm: 2.1
env: TESTS="integration[postgresql-debian-7,verify]"
- rvm: 2.0.0
env: TESTS="integration[postgresql-debian-8,verify]"
- rvm: 2.1
env: TESTS="integration[postgresql-debian-8,verify]"
- rvm: 2.0.0
env: TESTS="integration[postgresql-ubuntu-1204,verify]"
- rvm: 2.1
env: TESTS="integration[postgresql-ubuntu-1204,verify]"
- rvm: 2.0.0
env: TESTS="integration[postgresql-ubuntu-1404,verify]"
- rvm: 2.1
env: TESTS="integration[postgresql-ubuntu-1404,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-centos-6,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-centos-6,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-debian-7,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-debian-7,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-debian-8,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-debian-8,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-ubuntu-1204,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-ubuntu-1204,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-ubuntu-1404,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-ubuntu-1404,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-ubuntu-1504,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-ubuntu-1504,verify]"
- rvm: 2.0.0
env: TESTS="integration[sqlite-scientific-66,verify]"
- rvm: 2.1
env: TESTS="integration[sqlite-scientific-66,verify]"
- rvm: 2.0.0
env: TESTS="integration[nginx-debian-7,verify]"
- rvm: 2.1
env: TESTS="integration[nginx-debian-7,verify]"
- rvm: 2.0.0
env: TESTS="integration[nginx-debian-8,verify]"
- rvm: 2.1
env: TESTS="integration[nginx-debian-8,verify]"
before_install: curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 0.8.0
install: chef exec bundle install --jobs=3 --retry=3 --without='doc integration_vagrant integration_cloud guard'
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
before_script: sudo iptables -L DOCKER || sudo iptables -N DOCKER
script: travis_retry chef exec bundle exec rake $TESTS