-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
62 lines (58 loc) · 1.74 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
services:
- docker
language: ruby
cache: bundler
sudo: false
rvm:
- 2.7.1
bundler_args: "--without kitchen_vagrant"
script: bundle exec kitchen test ${INSTANCE} --destroy=always
env:
global:
- KITCHEN_YAML=.kitchen.yml
matrix:
- INSTANCE=chef-16-ubuntu-1804
- INSTANCE=chef-16-ubuntu-1604
- INSTANCE=chef-16-fedora-31
- INSTANCE=chef-16-fedora-30
- INSTANCE=chef-16-centos-7
- INSTANCE=chef-16-debian-10
- INSTANCE=chef-16-debian-9
- INSTANCE=chef-16-debian-8
- INSTANCE=chef-16-amazonlinux-2
- INSTANCE=chef-16-amazonlinux
- INSTANCE=chef-15-ubuntu-1804
- INSTANCE=chef-15-ubuntu-1604
- INSTANCE=chef-15-fedora-31
- INSTANCE=chef-15-fedora-30
- INSTANCE=chef-15-centos-7
- INSTANCE=chef-15-debian-10
- INSTANCE=chef-15-debian-9
- INSTANCE=chef-15-debian-8
- INSTANCE=chef-15-amazonlinux-2
- INSTANCE=chef-15-amazonlinux
- INSTANCE=chef-14-ubuntu-1804
- INSTANCE=chef-14-ubuntu-1604
- INSTANCE=chef-14-fedora-31
- INSTANCE=chef-14-fedora-30
- INSTANCE=chef-14-centos-7
- INSTANCE=chef-14-debian-10
- INSTANCE=chef-14-debian-9
- INSTANCE=chef-14-debian-8
- INSTANCE=chef-14-amazonlinux-2
- INSTANCE=chef-14-amazonlinux
jobs:
include:
- stage: lint
script:
- bundle exec cookstyle --version
- bundle exec cookstyle
- bundle exec foodcritic --version
- bundle exec foodcritic --context --epic-fail any .
- bundle exec rspec -fd test/cookbooks/testrig/spec/chefspec.rb
- stage: deploy
if: tag =~ ^[0-9]+\.[0-9]+\.[0-9]+$
script:
- openssl aes-256-cbc -K $encrypted_e35c8607da72_key -iv $encrypted_e35c8607da72_iv -in .travis/client.pem.enc -out .travis/client.pem -d
- bundle exec stove login --username dr_agon --key .travis/client.pem
- bundle exec stove --no-git