-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
73 lines (66 loc) · 3.04 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
rvm: 2.5
sudo: required
services: docker
env:
global:
- CHEF_VERSION="~> 14.0"
matrix:
- TESTS="style unit"
# Split up the test-kitchen run to avoid exceeding 50 minutes:
- TESTS="integration[default-centos-6,verify]"
- TESTS="integration[default-centos-7,verify]"
- TESTS="integration[default-debian-7,verify]"
- TESTS="integration[default-debian-8,verify]"
- TESTS="integration[default-debian-9,verify]"
- TESTS="integration[default-fedora-26,verify]"
- TESTS="integration[default-fedora-28,verify]"
- TESTS="integration[default-oracle-6,verify]"
- TESTS="integration[default-oracle-7,verify]"
- TESTS="integration[default-ubuntu-1404,verify]"
- TESTS="integration[default-ubuntu-1604,verify]"
- TESTS="integration[default-ubuntu-1804,verify]"
- TESTS="integration[default-opensuse-leap-42,verify]"
- TESTS="integration[ldap-centos-6,verify]"
- TESTS="integration[ldap-centos-7,verify]"
- TESTS="integration[ldap-debian-7,verify]"
- TESTS="integration[ldap-debian-8,verify]"
- TESTS="integration[ldap-debian-9,verify]"
- TESTS="integration[ldap-oracle-6,verify]"
- TESTS="integration[ldap-oracle-7,verify]"
- TESTS="integration[ldap-ubuntu-1404,verify]"
- TESTS="integration[ldap-ubuntu-1604,verify]"
- TESTS="integration[ldap-ubuntu-1804,verify]"
- TESTS="integration[ldap-opensuse-leap-42,verify]"
- TESTS="integration[attributes-centos-6,verify]"
- TESTS="integration[attributes-centos-7,verify]"
- TESTS="integration[attributes-debian-7,verify]"
- TESTS="integration[attributes-debian-8,verify]"
- TESTS="integration[attributes-debian-9,verify]"
- TESTS="integration[attributes-fedora-26,verify]"
- TESTS="integration[attributes-fedora-28,verify]"
- TESTS="integration[attributes-oracle-6,verify]"
- TESTS="integration[attributes-oracle-7,verify]"
- TESTS="integration[attributes-ubuntu-1404,verify]"
- TESTS="integration[attributes-ubuntu-1604,verify]"
- TESTS="integration[attributes-ubuntu-1804,verify]"
- TESTS="integration[attributes-opensuse-leap-42,verify]"
- TESTS="integration[create-pwfile-centos-7,verify]"
- TESTS="integration[create-pwfile-debian-7,verify]"
- TESTS="integration[create-pwfile-oracle-7,verify]"
- TESTS="integration[create-pwfile-ubuntu-1404,verify]"
- TESTS="integration[create-pwfile-ubuntu-1604,verify]"
- TESTS="integration[create-pwfile-ubuntu-1804,verify]"
- TESTS="integration[create-pwfile-opensuse-leap-42,verify]"
before_install:
- chef --version &> /dev/null || curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 3.1.0
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
install:
- sudo chef exec gem update --system 2.7.5
- 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