File tree Expand file tree Collapse file tree 5 files changed +71
-0
lines changed Expand file tree Collapse file tree 5 files changed +71
-0
lines changed Original file line number Diff line number Diff line change
1
+ ** /.librarian
2
+ ** /.tmp
3
+ ** /Puppetfile.lock
4
+ Gemfile.lock
5
+ Berksfile.lock
6
+ inspec.lock
Original file line number Diff line number Diff line change
1
+ sudo : false
2
+ language : ruby
3
+ cache : bundler
4
+
5
+ rvm :
6
+ - 2.4.1
7
+
8
+ bundler_args : --without integration
9
+ script : bundle exec rake
Original file line number Diff line number Diff line change
1
+ # Change Log
2
+
3
+ ## [ v0.2.0] ( https://github.com/dev-sec/cis-kubernetes-benchmark/tree/v0.2.0 ) (2017-08-15)
4
+
5
+
6
+ \* * This Change Log was automatically generated by [ github_changelog_generator] ( https://github.com/skywinder/Github-Changelog-Generator ) *
Original file line number Diff line number Diff line change
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'highline' , '~> 1.6.0'
4
+ gem 'inspec' , '~> 1'
5
+ gem 'rack' , '1.6.4'
6
+ gem 'rake'
7
+ gem 'rubocop' , '~> 0.49.0'
8
+
9
+ group :tools do
10
+ gem 'github_changelog_generator' , '~> 1.12.0'
11
+ end
Original file line number Diff line number Diff line change
1
+ require 'rake/testtask'
2
+ require 'rubocop/rake_task'
3
+
4
+ # Rubocop
5
+ desc 'Run Rubocop lint checks'
6
+ task :rubocop do
7
+ RuboCop ::RakeTask . new
8
+ end
9
+
10
+ # lint the project
11
+ desc 'Run robocop linter'
12
+ task lint : [ :rubocop ]
13
+
14
+ # run tests
15
+ task default : [ :lint , 'test:check' ]
16
+
17
+ namespace :test do
18
+ # run inspec check to verify that the profile is properly configured
19
+ task :check do
20
+ dir = File . join ( File . dirname ( __FILE__ ) )
21
+ sh ( "bundle exec inspec check #{ dir } " )
22
+ end
23
+ end
24
+
25
+ # Automatically generate a changelog for this project. Only loaded if
26
+ # the necessary gem is installed. By default its picking up the version from
27
+ # inspec.yml. You can override that behavior with s`rake changelog to=1.2.0`
28
+ begin
29
+ require 'yaml'
30
+ metadata = YAML . load_file ( 'inspec.yml' )
31
+ v = ENV [ 'to' ] || metadata [ 'version' ]
32
+ puts "Generate changelog for version #{ v } "
33
+ require 'github_changelog_generator/task'
34
+ GitHubChangelogGenerator ::RakeTask . new :changelog do |config |
35
+ config . future_release = v
36
+ end
37
+ rescue LoadError
38
+ puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
39
+ end
You can’t perform that action at this time.
0 commit comments