forked from spheromak/chef-timezone
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
59 lines (53 loc) · 1.81 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
services:
- docker
language: ruby
cache: bundler
sudo: false
rvm:
- 2.5.3
before_install:
- gem update --system
- gem install bundler
bundler_args: "--without kitchen_vagrant"
script: "bundle exec kitchen test ${INSTANCE} --destroy=always"
env:
global:
- KITCHEN_YAML=.kitchen.docker.yml
matrix:
- INSTANCE=chef-14-ubuntu-1804-docker
- INSTANCE=chef-14-ubuntu-1404-docker
- INSTANCE=chef-14-ubuntu-1604-docker
- INSTANCE=chef-14-debian-8-docker
- INSTANCE=chef-14-debian-9-docker
- INSTANCE=chef-14-centos-6-docker
- INSTANCE=chef-14-centos-7-docker
- INSTANCE=chef-14-fedora-26-docker
- INSTANCE=chef-14-fedora-27-docker
- INSTANCE=chef-14-opensuse-leap-42-docker
- INSTANCE=chef-14-amazonlinux-2-docker
- INSTANCE=chef-13-ubuntu-1404-docker
- INSTANCE=chef-13-ubuntu-1604-docker
- INSTANCE=chef-13-ubuntu-1804-docker
- INSTANCE=chef-13-debian-8-docker
- INSTANCE=chef-13-debian-9-docker
- INSTANCE=chef-13-centos-6-docker
- INSTANCE=chef-13-centos-7-docker
- INSTANCE=chef-13-fedora-26-docker
- INSTANCE=chef-13-fedora-27-docker
- INSTANCE=chef-13-opensuse-leap-42-docker
- INSTANCE=chef-13-amazonlinux-2-docker
jobs:
include:
- stage: lint
script:
- bundle exec rubocop --version
- bundle exec rubocop .
- bundle exec foodcritic --version
- bundle exec foodcritic --contex --epic-fail any .
- stage: deploy
if: tag =~ ^v[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}$
script:
- openssl aes-256-cbc -K $encrypted_f58e3a74976a_key -iv $encrypted_f58e3a74976a_iv -in .travis/secrets.tar.gz.enc -out .travis/secrets.tar.gz -d
- tar xzf .travis/secrets.tar.gz -C .travis
- bundle exec stove login --username dr_agon --key .travis/dr_agon.pem
- bundle exec stove --no-git