This repository was archived by the owner on Jul 28, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (35 loc) · 1.38 KB
/
.travis.yml
File metadata and controls
41 lines (35 loc) · 1.38 KB
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
# Use Travis's cointainer based infrastructure
sudo: required
services: docker
# Don't `bundle install`
install: echo "skip bundle install"
branches:
only:
- master
env:
matrix:
- SUITE=default
- SUITE=integration:kitchen:default-ubuntu-1404
- SUITE=integration:kitchen:default-centos-75
before_script:
# https://github.com/zuazo/kitchen-in-travis-native/issues/1#issuecomment-142455888
- sudo iptables -L DOCKER || sudo iptables -N DOCKER
# ChefDK no longer available via APT repo
- wget https://packages.chef.io/files/stable/chefdk/3.2.30/ubuntu/14.04/chefdk_3.2.30-1_amd64.deb
- sudo dpkg -i chefdk_3.2.30-1_amd64.deb
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/bin/chef gem install kitchen-docker
script:
- /opt/chefdk/bin/chef --version
- /opt/chefdk/bin/cookstyle --version
- /opt/chefdk/bin/foodcritic --version
- /opt/chefdk/bin/kitchen --version
- KITCHEN_LOCAL_YAML=.kitchen.docker.yml /opt/chefdk/bin/chef exec rake ${SUITE}
notifications:
# Post build failures to '#chef' channel in 'stackstorm-community' Slack
slack:
rooms:
- secure: O+o2FvLubrlKelWc1uvtcpLZgyQIBOoRGepZH2eKeguinGiXqaic0GK5KUthFdJJtmn3uT+brGyug08wgmSQKa+VoFEPJwHCIYTL2ZnGoggtJcbv8FU0c2sa1DJ1gSH4Q8PGzuwKuW67ExfYQYPwciyJ3RjmoYoIouB1pbqwmgk=
on_pull_requests: false
on_success: change # default: always
on_failure: always # default: always