.travis.yml 1005 Bytes
Newer Older
1
sudo: required
Tim Smith's avatar
Tim Smith committed
2
dist: trusty
3

4
5
6
addons:
  apt:
    sources:
Tim Smith's avatar
Tim Smith committed
7
      - chef-current-trusty
8
9
10
    packages:
      - chefdk

Tim Smith's avatar
Tim Smith committed
11
12
13
14
15
16
17
# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

branches:
  only:
    - master

18
19
20
21
services: docker

env:
  matrix:
Tim Smith's avatar
Tim Smith committed
22
  - INSTANCE=default-ubuntu-1404
23
24
  - INSTANCE=default-ubuntu-1604
  - INSTANCE=default-debian-8
Tim Smith's avatar
Tim Smith committed
25
  - INSTANCE=default-centos-6
Tim Smith's avatar
Tim Smith committed
26
  - INSTANCE=default-centos-7
Tim Smith's avatar
Tim Smith committed
27
  - INSTANCE=default-fedora-latest
28
29
30
  - INSTANCE=source-ubuntu-1404
  - INSTANCE=source-ubuntu-1604
  - INSTANCE=source-debian-8
Tim Smith's avatar
Tim Smith committed
31
  - INSTANCE=source-fedora-latest
32
  - INSTANCE=source-centos-7
33

34
before_script:
35
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
36
37
38
39
  - eval "$(chef shell-init bash)"
  - chef --version
  - cookstyle --version
  - foodcritic --version
Tim Smith's avatar
Tim Smith committed
40

41
script: KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen verify ${INSTANCE}
Tim Smith's avatar
Tim Smith committed
42
43
44
45

matrix:
  include:
    - script:
46
      - chef exec delivery local all
Tim Smith's avatar
Tim Smith committed
47
      env: UNIT_AND_LINT=1