Skip to content

Commit a1771c7

Browse files
authored
Merge pull request #533 from test-kitchen/github_actions
Signed-off-by: Tim Smith <[email protected]>
2 parents be8d27d + 4dde065 commit a1771c7

File tree

10 files changed

+14
-25
lines changed

10 files changed

+14
-25
lines changed

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
AllCops:
3-
TargetRubyVersion: 2.4
3+
TargetRubyVersion: 2.5
44

55
Lint/IneffectiveAccessModifier:
66
Exclude:

.yardopts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
--readme README.md
2-
--markup markdown
3-
--markup-provider maruku
2+
--markup markdown

CODE_OF_CONDUCT.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please refer to the Chef Community Code of Conduct at https://www.chef.io/code-of-conduct/

Gemfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ source "https://rubygems.org"
44
gemspec
55

66
group :test do
7-
gem "rake"
7+
gem "rake", ">= 11.0"
8+
gem "rspec", "~> 3.2"
9+
end
10+
11+
group :debug do
812
gem "pry"
913
end
1014

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# <a name="title"></a> Kitchen::Ec2: A Test Kitchen Driver for Amazon EC2
22

33
[![Gem Version](https://badge.fury.io/rb/kitchen-ec2.svg)](https://badge.fury.io/rb/kitchen-ec2)
4-
![CI](https://github.com/test-kitchen/kitchen-ec2/workflows/CI/badge.svg)
5-
[![Code Climate](https://codeclimate.com/github/test-kitchen/kitchen-ec2/badges/gpa.svg)](https://codeclimate.com/github/test-kitchen/kitchen-ec2)
4+
![CI](https://github.com/test-kitchen/kitchen-ec2/workflows/CI/badge.svg?branch=master)
65

76
A [Test Kitchen][kitchenci] Driver for Amazon EC2.
87

Rakefile

-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ rescue LoadError
1212
puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking."
1313
end
1414

15-
desc "Run all quality tasks"
16-
1715
task default: %i{test style}

kitchen-ec2.gemspec

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ Gem::Specification.new do |gem|
1515
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).grep(/LICENSE|^lib/)
1616
gem.require_paths = ["lib"]
1717

18-
gem.required_ruby_version = ">= 2.4"
18+
gem.required_ruby_version = ">= 2.5"
1919

2020
gem.add_dependency "test-kitchen", ">= 1.4.1", "< 3"
2121
gem.add_dependency "aws-sdk-ec2", "~> 1.0"
2222
gem.add_dependency "retryable", ">= 2.0", "< 4.0" # 4.0 will need to be validated
23-
24-
gem.add_development_dependency "rspec", "~> 3.2"
25-
gem.add_development_dependency "maruku", "~> 0.6"
26-
gem.add_development_dependency "climate_control"
2723
end

lib/kitchen/driver/ec2.rb

+4-6
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,10 @@ def submit_spots
459459

460460
errs = []
461461
configs.each do |conf|
462-
begin
463-
@config = conf
464-
return submit_spot
465-
rescue => e
466-
errs.append(e)
467-
end
462+
@config = conf
463+
return submit_spot
464+
rescue => e
465+
errs.append(e)
468466
end
469467
raise ["Could not create a spot instance:", errs].flatten.join("\n")
470468
end

spec/kitchen/driver/aws/client_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# limitations under the License.
1818

1919
require "kitchen/driver/aws/client"
20-
require "climate_control"
2120

2221
describe Kitchen::Driver::Aws::Client do
2322

spec/spec_helper.rb

-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818

1919
require "support/fake_image"
2020

21-
if ENV["CODECLIMATE_REPO_TOKEN"]
22-
require "codeclimate-test-reporter"
23-
CodeClimate::TestReporter.start
24-
end
25-
2621
RSpec.configure do |config|
2722
# rspec-expectations config goes here. You can use an alternate
2823
# assertion/expectation library such as wrong or the stdlib/minitest

0 commit comments

Comments
 (0)