Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Add inline documentation to clarify Expeditor steps
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Duffield <tom@chef.io>
  • Loading branch information
tduffield committed Apr 6, 2017
1 parent 748f405 commit 2fd5b54
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .expeditor/bundle_install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/sh
#
# Simple file to perform a minimal bundle install to allow Chef Expeditor to run `rake` commands
#

set -evx

# Only install groups required to run the Rake command
export BUNDLE_WITHOUT=omnibus_package:test:aix:bsd:linux:mac_os_x:solaris:windows:default

gem environment
bundler_version=$(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
gem install bundler -v $bundler_version --user-install --conservative
export BUNDLE_WITHOUT=omnibus_package:test:aix:bsd:linux:mac_os_x:solaris:windows:default
bundle install
12 changes: 12 additions & 0 deletions .expeditor/update_version.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
#!/bin/sh
#
# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file.
# It then executes this file to update any other files/components with that new version.
#

set -evx

# The github-changelog-generator requires that LANG be set
export LANG=en_US.UTF-8

# We need to run a bundle install so that our `bundle exec rake` command will work.
. .expeditor/bundle_install.sh

# Run a rake command that will update various files in chef/chef-dk with the new VERSION
bundle exec rake expeditor_update_version

# Our `rake` command can sometimes modify this file, but we don't care about the
# changes it makes. Reset it to HEAD.
git checkout .bundle/config

# Once Expeditor finshes executing this script, it will commit the changes and push
# the commit as a new tag corresponding to the value in the VERSION file.

0 comments on commit 2fd5b54

Please sign in to comment.