Skip to content

Commit 161c2c0

Browse files
committed
Look, it works.
0 parents  commit 161c2c0

34 files changed

+803
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
steps:
2+
- command: bundle exec rake
3+
env:
4+
BUNDLE_AUTO_INSTALL: true

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status

.rspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--format documentation
2+
--color
3+
--format RSpec::Buildkite::AnnotationFormatter
4+
--require spec_helper

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
sudo: false
2+
language: ruby
3+
rvm:
4+
- 2.1
5+
- 2.2
6+
- 2.3
7+
- 2.3
8+
- 2.5
9+
gemfile:
10+
- gemfiles/rspec_3_0.gemfile
11+
- gemfiles/rspec_3_1.gemfile
12+
- gemfiles/rspec_3_2.gemfile
13+
- gemfiles/rspec_3_3.gemfile
14+
- gemfiles/rspec_3_4.gemfile
15+
- gemfiles/rspec_3_5.gemfile
16+
- gemfiles/rspec_3_6.gemfile
17+
- gemfiles/rspec_3_7.gemfile

Appraisals

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
appraise "rspec-3-0" do
2+
gem "rspec", "~> 3.0.0"
3+
end
4+
5+
appraise "rspec-3-1" do
6+
gem "rspec", "~> 3.1.0"
7+
end
8+
9+
appraise "rspec-3-2" do
10+
gem "rspec", "~> 3.2.0"
11+
end
12+
13+
appraise "rspec-3-3" do
14+
gem "rspec", "~> 3.3.0"
15+
end
16+
17+
appraise "rspec-3-4" do
18+
gem "rspec", "~> 3.4.0"
19+
end
20+
21+
appraise "rspec-3-5" do
22+
gem "rspec", "~> 3.5.0"
23+
end
24+
25+
appraise "rspec-3-6" do
26+
gem "rspec", "~> 3.6.0"
27+
end
28+
29+
appraise "rspec-3-7" do
30+
gem "rspec", "~> 3.7.0"
31+
end

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4+
5+
# Specify your gem's dependencies in rspec-buildkite.gemspec
6+
gemspec

Gemfile.lock

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
PATH
2+
remote: .
3+
specs:
4+
rspec-buildkite (0.1.0)
5+
rspec-core (~> 3.0)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
appraisal (2.2.0)
11+
bundler
12+
rake
13+
thor (>= 0.14.0)
14+
coderay (1.1.2)
15+
diff-lcs (1.3)
16+
rake (12.3.1)
17+
rspec (3.7.0)
18+
rspec-core (~> 3.7.0)
19+
rspec-expectations (~> 3.7.0)
20+
rspec-mocks (~> 3.7.0)
21+
rspec-core (3.7.1)
22+
rspec-support (~> 3.7.0)
23+
rspec-expectations (3.7.0)
24+
diff-lcs (>= 1.2.0, < 2.0)
25+
rspec-support (~> 3.7.0)
26+
rspec-mocks (3.7.0)
27+
diff-lcs (>= 1.2.0, < 2.0)
28+
rspec-support (~> 3.7.0)
29+
rspec-support (3.7.1)
30+
thor (0.20.0)
31+
32+
PLATFORMS
33+
ruby
34+
35+
DEPENDENCIES
36+
appraisal
37+
bundler (~> 1.16)
38+
coderay
39+
rake
40+
rspec (~> 3.0)
41+
rspec-buildkite!
42+
43+
BUNDLED WITH
44+
1.16.2

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Samuel Cochran
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# RSpec Buildkite
2+
3+
Output [RSpec][rspec] failure messages as [Buildkite annotations][buildkite-annotations] as soon as they happen so you can fix them while your build finishes.
4+
5+
![A Buildkite build still in progress with an annotation showing an RSpec failure][screenshot]
6+
7+
[rspec]: http://rspec.info
8+
[buildkite-annotations]: https://buildkite.com/docs/agent/v3/cli-annotate
9+
[screenshot]: https://user-images.githubusercontent.com/14028/40577709-5b839e8a-614d-11e8-898b-575bb0cc02ba.png
10+
11+
## Installation
12+
13+
Add the gem to your Gemfile, after rspec:
14+
15+
```ruby
16+
gem "rspec"
17+
gem "rspec-buildkite"
18+
```
19+
20+
And then bundle:
21+
22+
$ bundle
23+
24+
Or install it yourself as:
25+
26+
$ gem install rspec-buildkite
27+
28+
## Usage
29+
30+
Add it to your `.rspec` alongside your favorite formatter:
31+
32+
```
33+
--color
34+
--require spec_helper
35+
--format documentation
36+
--format RSpec::Buildkite::AnnotationFormatter
37+
```
38+
39+
Now run your specs on Buildkite!
40+
41+
## Development
42+
43+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
44+
45+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
46+
47+
## Contributing
48+
49+
Bug reports and pull requests are welcome on GitHub at https://github.com/sj26/rspec-buildkite.
50+
51+
## License
52+
53+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Rakefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require "bundler/gem_tasks"
2+
require "rspec/core/rake_task"
3+
require "appraisal"
4+
5+
RSpec::Core::RakeTask.new(:spec)
6+
7+
task :default => :spec
8+
9+
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
10+
task :default => :appraisal
11+
end

0 commit comments

Comments
 (0)