From a254a21dcd4d452ea1e9200d96124882e698a27d Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 24 Jun 2019 13:15:28 -0700 Subject: [PATCH] Setup this repo for Buildkite testing Signed-off-by: Tim Smith --- .expeditor/config.yml | 7 ++++++- .expeditor/verify.pipeline.yml | 28 ++++++++++++++++++++++++++++ Gemfile | 2 +- README.md | 11 +++++++---- Rakefile | 3 ++- 5 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 .expeditor/verify.pipeline.yml diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 2b30fe6..17bc04f 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -2,7 +2,7 @@ --- # Slack channel in Chef Software slack to send notifications about build failures, etc slack: - notify_channel: chef-notify + notify_channel: chef-found-notify # This publish is triggered by the `built_in:publish_rubygems` artifact_action. rubygems: @@ -42,3 +42,8 @@ promote: actions: - built_in:rollover_changelog - built_in:publish_rubygems + +pipelines: + - verify: + description: Pull Request validation tests + public: true diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml new file mode 100644 index 0000000..1a3dd9e --- /dev/null +++ b/.expeditor/verify.pipeline.yml @@ -0,0 +1,28 @@ +steps: + +- label: run-lint-and-specs-ruby-2.4 + command: + - bundle install --jobs=7 --retry=3 --without docs debug + - bundle exec rake + expeditor: + executor: + docker: + image: ruby:2.4-stretch + +- label: run-lint-and-specs-ruby-2.5 + command: + - bundle install --jobs=7 --retry=3 --without docs debug + - bundle exec rake + expeditor: + executor: + docker: + image: ruby:2.5-stretch + +- label: run-lint-and-specs-ruby-2.6 + command: + - bundle install --jobs=7 --retry=3 --without docs debug + - bundle exec rake + expeditor: + executor: + docker: + image: ruby:2.6-stretch diff --git a/Gemfile b/Gemfile index ff148f1..5d5ce45 100644 --- a/Gemfile +++ b/Gemfile @@ -9,8 +9,8 @@ group :docs do end group :test do - gem "rake" gem "chefstyle" + gem "rake" end group :debug do diff --git a/README.md b/README.md index de544b5..1047b7e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@ # appbundle-updater [![Gem Version](https://badge.fury.io/rb/appbundle-updater.svg)](https://badge.fury.io/rb/appbundle-updater) -* **Umbrella Project**: [Chef Infra](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-foundation.md) -* **[Project State](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: Active -* **Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 7 days -* **Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 7 days +**Umbrella Project**: [Chef Foundation](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-foundation.md) + +**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active) + +**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days + +**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days Helper to update Chef and Chef-DK appbundle'd apps inside of an omnibus bundle. diff --git a/Rakefile b/Rakefile index e0789ee..ec624cf 100644 --- a/Rakefile +++ b/Rakefile @@ -4,11 +4,12 @@ task default: [:style] begin require "chefstyle" require "rubocop/rake_task" + desc "Run Chefstyle tests" RuboCop::RakeTask.new(:style) do |task| task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed." + puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed." end begin