-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example rspec
tests
#64
base: trunk
Are you sure you want to change the base?
Conversation
96ba48c
to
6e8e9ee
Compare
|
||
source "https://rubygems.org" | ||
|
||
gem "rexml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd probably want to use nokogiri if we pushed this to "production" as it's the more commonly used, but this does the job alright in this context.
@@ -1,14 +1,17 @@ | |||
.DEFAULT_GOAL := default | |||
|
|||
lint: buildkite-plugin-lint rubocop shellcheck | |||
test: buildkite-plugin-test buildkite-plugin-test-commands-are-executable | |||
test: unit-tests buildkite-plugin-test buildkite-plugin-test-commands-are-executable | |||
|
|||
buildkite-plugin-test: | |||
docker run -t --rm -v "${PWD}":/plugin buildkite/plugin-tester | |||
|
|||
buildkite-plugin-test-commands-are-executable: | |||
docker run -t --rm -v "${PWD}":/plugin -w /plugin ruby:2.7.4 /bin/bash -c "gem install --silent rspec && rspec tests/test-that-all-files-are-executable.rb" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change this Ruby value to the one from the new .ruby-version
to keep this PR focused.
@@ -0,0 +1 @@ | |||
3.2.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this is an experiment, might as well try with the latest Ruby :)
No description provided.