-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
57 lines (49 loc) · 1.83 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
rvm:
- 2.2
- 2.3
sudo: required
services: docker
env:
matrix:
- TESTS="style unit" CHEF_VERSION="~> 12.0"
# - TESTS="integration[mysql-centos-6,verify]"
- TESTS="integration[mysql-debian-8,verify]"
- TESTS="integration[postgresql-debian-8,verify]"
- TESTS="integration[postfixpgsql-debian-7,verify]"
- TESTS="integration[postfixpgsql-debian-8,verify]"
- TESTS="integration[postfixpgsql-ubuntu-1204,verify]"
- TESTS="integration[postfixpgsql-ubuntu-1404,verify]"
- TESTS="integration[postfixpgsql-ubuntu-1604,verify]"
- TESTS="integration[postfixpgsql-ubuntu-1610,verify]"
matrix:
exclude:
- rvm: 2.2
env: TESTS="integration[mysql-centos-6,verify]"
- rvm: 2.2
env: TESTS="integration[mysql-debian-8,verify]"
- rvm: 2.2
env: TESTS="integration[postgresql-debian-8,verify]"
- rvm: 2.2
env: TESTS="integration[postfixpgsql-debian-7,verify]"
- rvm: 2.2
env: TESTS="integration[postfixpgsql-debian-8,verify]"
- rvm: 2.2
env: TESTS="integration[postfixpgsql-ubuntu-1204,verify]"
- rvm: 2.2
env: TESTS="integration[postfixpgsql-ubuntu-1404,verify]"
- rvm: 2.2
env: TESTS="integration[postfixpgsql-ubuntu-1604,verify]"
- rvm: 2.2
env: TESTS="integration[postfixpgsql-ubuntu-1610,verify]"
before_install:
- chef --version &> /dev/null || curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 1.2.22
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
install:
- chef exec bundle install --jobs=3 --retry=3 --without='doc integration_vagrant integration_cloud guard'
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- chef --version
- cookstyle --version
- foodcritic --version
script: travis_retry chef exec bundle exec rake $TESTS