-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add expeditor and buildkite verify pipeline
Signed-off-by: Miah Johnson <[email protected]>
- Loading branch information
Showing
6 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -ueo pipefail | ||
|
||
echo "--- system details" | ||
uname -a | ||
ruby -v | ||
bundle --version | ||
|
||
echo "--- bundle install" | ||
bundle install --jobs=7 --retry=3 --without tools maintenance deploy | ||
|
||
echo "+++ bundle exec rake lint" | ||
bundle exec rake lint | ||
|
||
echo "+++ bundle exec rake test:check" | ||
bundle exec rake test:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Documentation available at https://expeditor.chef.io/docs/getting-started/ | ||
--- | ||
|
||
pipelines: | ||
- verify: | ||
description: Pull Request validation tests | ||
public: true | ||
|
||
slack: | ||
notify_channel: inspec-notify | ||
|
||
github: | ||
delete_branch_on_merge: true | ||
minor_bump_labels: | ||
- "Version: Bump Minor" | ||
version_tag_format: v{{version}} | ||
release_branch: | ||
- master | ||
|
||
changelog: | ||
categories: | ||
- "Type: New Resource": "New Resources" | ||
- "Type: New Feature": "New Features" | ||
- "Type: Enhancement": "Enhancements" | ||
- "Type: Bug": "Bug Fixes" | ||
|
||
merge_actions: | ||
- built_in:bump_version: | ||
ignore_labels: | ||
- "Version: Skip Bump" | ||
- "Expeditor: Skip All" | ||
- bash:.expeditor/update_version.sh: | ||
only_if: built_in:bump_version | ||
- built_in:update_changelog: | ||
ignore_labels: | ||
- "Changelog: Skip Update" | ||
- "Expeditor: Skip All" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# | ||
# 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 -ev | ||
|
||
sed -i -r "s/version\: .*/version\: $(cat VERSION)/" inspec.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
steps: | ||
|
||
- label: run-tests-ruby-2.4 | ||
command: | ||
- /workdir/.expeditor/buildkite/verify.sh | ||
expeditor: | ||
executor: | ||
docker: | ||
image: ruby:2.4-stretch | ||
|
||
- label: run-tests-ruby-2.5 | ||
command: | ||
- /workdir/.expeditor/buildkite/verify.sh | ||
expeditor: | ||
executor: | ||
docker: | ||
image: ruby:2.5-stretch | ||
|
||
- label: run-tests-ruby-2.6 | ||
command: | ||
- /workdir/.expeditor/buildkite/verify.sh | ||
expeditor: | ||
executor: | ||
docker: | ||
image: ruby:2.6-stretch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.11.0 |