From fc501a5a2b4a6fab4e17f1e4e38dfc48339de179 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 11 Dec 2018 20:14:10 -0800 Subject: Only ship the required libraries in the gem artifact Skip the dev and test files from the gem artifact. Signed-off-by: Tim Smith --- .expeditor/config.yml | 29 +++++++++++++++-------------- .travis.yml | 6 +++--- mixlib-authentication.gemspec | 7 +++---- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 591780e..e3dd427 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -1,40 +1,41 @@ -# Documentation available at http://expeditor-docs.es.chef.io/ - +# Documentation available at https://expeditor.chef.io/docs/getting-started/ +--- # Slack channel in Chef Software slack to send notifications about build failures, etc slack: notify_channel: chef-notify +# This publish is triggered by the `built_in:publish_rubygems` artifact_action. rubygems: - mixlib-authentication github: + # This deletes the GitHub PR branch after successfully merged into the release branch + delete_branch_on_merge: true # The tag format to use (e.g. v1.0.0) version_tag_format: "v{{version}}" - # Which Github branches to build gems from, and what versions - # (as determined by the value in the VERSION file) those branches are responsible - # for building. - release_branch: - - master: - version_constraint: 2.* + # allow bumping the minor release via label + minor_bump_labels: + - "Expeditor: Bump Minor Version" -promote: - actions: - - built_in:rollover_changelog - - built_in:publish_rubygems +changelog: + rollup_header: Changes not yet released to rubygems.org # These actions are taken, in order they are specified, anytime a Pull Request is merged. merge_actions: - built_in:bump_version: ignore_labels: - - "Version: Skip Bump" - "Expeditor: Skip Version Bump" - "Expeditor: Skip All" - bash:.expeditor/update_version.sh: only_if: built_in:bump_version - built_in:update_changelog: ignore_labels: - - "Meta: Exclude From Changelog" - "Expeditor: Exclude From Changelog" - "Expeditor: Skip All" - built_in:build_gem: only_if: built_in:bump_version + +promote: + actions: + - built_in:rollover_changelog + - built_in:publish_rubygems diff --git a/.travis.yml b/.travis.yml index 8134b8f..cf0a799 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,9 @@ before_install: matrix: include: - rvm: 2.2.10 - - rvm: 2.3.7 - - rvm: 2.4.4 - - rvm: 2.5.1 + - rvm: 2.3.8 + - rvm: 2.4.5 + - rvm: 2.5.3 - rvm: ruby-head allow_failures: - rvm: ruby-head diff --git a/mixlib-authentication.gemspec b/mixlib-authentication.gemspec index 4f2b9e3..eeb46c6 100644 --- a/mixlib-authentication.gemspec +++ b/mixlib-authentication.gemspec @@ -9,9 +9,8 @@ Gem::Specification.new do |s| s.license = "Apache-2.0" s.author = "Chef Software, Inc." s.email = "info@chef.io" - s.homepage = "https://www.chef.io" + s.homepage = "https://github.com/chef/mixlib-authentication" - s.require_path = "lib" - s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") + - Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } + s.files = %w{LICENSE} + Dir.glob("lib/**/*") + s.require_paths = ["lib"] end -- cgit v1.2.1