forked from sitle/chef-bareos
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (40 loc) · 1.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
dist: trusty
sudo: required
group: edge
services: docker
addons:
apt:
sources:
- chef-stable-trusty
packages:
- chefdk
install: echo "skip bundle install"
stages:
- lint
- test
env:
- T=bareos-aio-server-ubuntu-14
- T=bareos-aio-server-centos-7
script:
- KITCHEN_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/embedded/bin/kitchen test $T -d always
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- /opt/chefdk/embedded/bin/chef --version
- /opt/chefdk/embedded/bin/cookstyle --version
- /opt/chefdk/embedded/bin/foodcritic --version
- /opt/chefdk/embedded/bin/rspec --version
- /opt/chefdk/embedded/bin/chef gem install kitchen-dokken
jobs:
include:
- stage: lint
env:
script:
- /bin/bash -xe travis/pre-commit.sh
notifications:
email:
recipients:
# - leonard.tavae@gmail.com
- gitbytes@gmail.com
on_failure: never
on_success: always