Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit cc53b47

Browse files
author
Lloyd Philbrook
authored
Merge pull request #35 from tablexi/develop
Promote Develop to Master
2 parents 42c25f8 + 33f023f commit cc53b47

13 files changed

Lines changed: 491 additions & 73 deletions

File tree

.circleci/config.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
version: 2.0
2+
jobs:
3+
build:
4+
docker:
5+
- image: ruby:2.4.3
6+
steps:
7+
- checkout
8+
9+
- type: cache-restore
10+
key: gemfile-v2{{ checksum "Gemfile.lock" }}
11+
12+
- run: bundle install --path ~/bundle
13+
14+
- type: cache-save
15+
key: gemfile-v2{{ checksum "Gemfile.lock" }}
16+
paths:
17+
- ~/bundle
18+
19+
- run: bundle exec rake berkshelf:setup
20+
21+
- run: bundle exec berks install
22+
23+
- run: bundle exec rubocop
24+
25+
- run: bundle exec foodcritic .
26+
27+
- run:
28+
command: bundle exec rspec
29+
no_output_timeout: 1800
30+
release:
31+
docker:
32+
- image: ruby:2.4.3
33+
steps:
34+
- checkout
35+
36+
- type: cache-restore
37+
key: gemfile-v2{{ checksum "Gemfile.lock" }}
38+
39+
- run: bundle install --path ~/bundle
40+
41+
- type: cache-save
42+
key: gemfile-v2{{ checksum "Gemfile.lock" }}
43+
paths:
44+
- ~/bundle
45+
46+
- run:
47+
command: |
48+
export GITHUB_REPO="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
49+
export GITHUB_TOKEN=$CHANGELOG_GITHUB_TOKEN
50+
export VERSION_MINOR=0
51+
export VERSION_PATCH=$CIRCLE_BUILD_NUM
52+
bundle exec rake release:github release:chef_server
53+
54+
workflows:
55+
version: 2
56+
test_and_bump:
57+
jobs:
58+
- build
59+
- release:
60+
requires:
61+
- build
62+
filters:
63+
branches:
64+
only:
65+
- master
66+
- develop

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ client-config/*.pem
99
client-config/*.rb
1010

1111
.rvmrc
12-
.ruby-version
1312
.ruby-gemset
1413

1514
.bundle
@@ -32,4 +31,5 @@ Berksfile.lock
3231
.kitchen.local.yml
3332

3433
cookbooks/*
35-
batali.manifest
34+
35+
VERSION

.rubocop.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ AllCops:
77
Exclude:
88
- vendor/**/*
99
- cookbooks/**/*
10+
TargetRubyVersion: 2.4
1011

1112
ClassLength:
1213
Enabled: false
@@ -20,9 +21,20 @@ LineLength:
2021
Enabled: false
2122
MethodLength:
2223
Enabled: false
24+
Metrics/ModuleLength:
25+
Exclude:
26+
- "**/*_spec.rb"
27+
Metrics/BlockLength:
28+
Exclude:
29+
- "**/*_spec.rb"
2330
SignalException:
2431
Enabled: false
2532
WordArray:
2633
Enabled: false
27-
Style/Next:
34+
Style/FrozenStringLiteralComment:
35+
Enabled: false
36+
# Use until migration to classes
37+
Metrics/BlockLength:
38+
Enabled: false
39+
Metrics/BlockNesting:
2840
Enabled: false

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.3

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Change Log
2+
3+
For all future changes, see https://github.com/tablexi/chef-ffmpeg_amazon/releases.

Gemfile

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
source 'https://rubygems.org'
22

3-
gem 'rake'
3+
ruby File.open(File.expand_path('.ruby-version', File.dirname(__FILE__))) { |f| f.read.chomp }
44

5-
group :lint do
6-
gem 'rubocop'
7-
gem 'foodcritic'
8-
end
5+
gem 'berkshelf'
6+
gem 'chef', '~> 12'
7+
gem 'cookbook_release', git: 'git@github.com:tablexi/chef-cookbook_release_tasks.git'
98

10-
group :unit, :integration do
11-
gem 'berkshelf'
9+
group :dev do
10+
gem 'chef-validation'
11+
gem 'chefspec'
12+
gem 'foodcritic'
13+
gem 'rubocop'
1214
end
1315

14-
group :unit do
15-
gem 'chefspec'
16-
gem 'rspec-expectations'
16+
group :guard do
17+
gem 'guard'
18+
gem 'guard-foodcritic'
19+
gem 'guard-kitchen'
20+
gem 'guard-rspec'
21+
gem 'guard-rubocop'
22+
gem 'ruby_gntp'
1723
end
1824

19-
group :integration do
20-
gem 'test-kitchen'
21-
gem 'kitchen-vagrant'
25+
group :kitchen do
26+
gem 'chef-zero'
27+
gem 'kitchen-docker'
2228
gem 'kitchen-ec2'
23-
gem 'serverspec'
29+
gem 'test-kitchen'
2430
end

0 commit comments

Comments
 (0)