https://github.com/ukoloff/appveyor-worker
Access to AppVeyor Build Worker API
https://github.com/ukoloff/appveyor-worker
appveyor minitest ruby
Last synced: over 1 year ago
JSON representation
Access to AppVeyor Build Worker API
- Host: GitHub
- URL: https://github.com/ukoloff/appveyor-worker
- Owner: ukoloff
- Created: 2016-04-24T03:26:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T07:46:26.000Z (over 8 years ago)
- Last Synced: 2025-02-22T13:03:36.375Z (over 1 year ago)
- Topics: appveyor, minitest, ruby
- Language: Ruby
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AppVeyor::Worker
[](https://ci.appveyor.com/project/ukoloff/appveyor-worker)
[](http://badge.fury.io/rb/appveyor-worker)
Access to [AppVeyor][]
[Build Worker API][].
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'appveyor-worker' # if ENV['APPVEYOR_API_URL']
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install appveyor-worker
## Usage
```ruby
require 'appveyor/worker'
AppVeyor::Worker.message "Hello, world!", "It's me"
```
### Minitest
When using `AppVeyor::Worker` under
[Minitest][]
the latter automagically requires the former.
Just add to `Gemfile` et voila! Test results will populate list
and `AppVeyor::Worker.message` is available in your tests.
In addition, Minitest seed will be sent as AppVeyor message.
### RSpec
For [RSpec][] you need *two* lines of code, as mentioned above:
1. Add gem to `Gemfile`
2. Require gem
* Either directly in one of your `./spec/*_spec.rb` files
* Or by adding `-r appveyor/worker` to `./.rspec`
RScpec seed is also reported as standard AppVeyor message.
[AppVeyor]: http://www.appveyor.com/
[Build Worker API]: http://www.appveyor.com/docs/build-worker-api
[Minitest]: https://github.com/seattlerb/minitest
[RSpec]: http://rspec.info/