forked from sous-chefs/java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 912 Bytes
/
.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
sudo: false
addons:
apt:
sources:
- chef-current-precise
packages:
- chefdk
install: echo "skip bundle install"
branches:
only:
- master
before_script:
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
- "/opt/chefdk/embedded/bin/chef gem install chef-sugar"
script:
- "/opt/chefdk/embedded/bin/chef --version"
- "/opt/chefdk/embedded/bin/rubocop --version"
- "/opt/chefdk/embedded/bin/rubocop"
- "/opt/chefdk/embedded/bin/foodcritic --version"
- "/opt/chefdk/embedded/bin/foodcritic . --exclude spec"
- "/opt/chefdk/embedded/bin/rspec spec"
before_install:
- openssl aes-256-cbc -K $encrypted_5f302455a65c_key -iv $encrypted_5f302455a65c_iv
-in .travis/publish-key.pem.enc -out .travis/publish-key.pem -d
deploy:
edge: true
provider: chef-supermarket
user_id: erichelgeson
client_key: ".travis/publish-key.pem"
cookbook_category: Other
skip_cleanup: true
on:
tags: true